c# - Is there a way in Twilio to write back that we failed to process an inbound text? -
i have api handles inbound text messages twilio. occassionally have network outtages or other issues cause api receive text, unable save database.
we want build out redundancy can reprocess text failed after short wait. can't rely on sending http error codes twilio because alot of false positives int twilio error logs due slowness in replying or message can blow far down food chain.
i noticed in twilio when reply http error codes can manually resend text web api.
is there way make api call twilio set failed state, maintenance operation can check twilio failed messages , resubmit?
currently using latest twilio nuget package v5.2.0
twilio developer evangelist here.
the best way deal use fallback url number.
when return error code twilio because service down or times out twilio make second request fallback url can set (see picture).
we recommend make url point different application, issues primary application doesn't affect fallback. then, application store messages failed processed primary handler , process them @ later time.
let me know if helps @ all.

Comments
Post a Comment