Reputation: 4510
I'm working with Twilio to send SMS messages and I'm trying to configure it so that it would retry the status callback request if the endpoint returns an error (500):
require 'twilio-ruby'
@client = Twilio::REST::Client.new(account_sid, auth_token)
message = @client.messages.create(
from: '+...',
body: 'Test message',
to: '+...
status_callback: 'https://public-url/ack#rc=2&ct=1000&rp=all'
)
The endpoint I exposed always returns a 500 error, and I'm expecting Twilio to retry the endpoint 2 times. But this doesn't happen, it is never retrying the request.
Connection overrides are supposed to work with the message resource: https://www.twilio.com/docs/usage/webhooks/webhooks-connection-overrides
Why would this not work? Am I missing something or is this just a bug?
Upvotes: 1
Views: 883
Reputation: 10771
Try adding, &sni=y
. I know with Ngrok, I need to do this, to see the retries.
Upvotes: 4