2-Way HTTP command issue

2-Way HTTP command issue SearchSearch
Author Message
Ehsan hamideh
New member
Username: Ehamideh

Post Number: 1
Registered: 04-2011
Posted on Thursday, April 14, 2011 - 09:10 am:   

Hello
I have an issue and I need your help and support I'm routing a messages to an HTTP command line (web service from other server); My issue is: if this web service has problem (stooped working for some reason or the server goes down or …) and the response from it was "gateway timeout" for example, how can i handle this exception and send back an SMS to the sender telling –for example "Try again and resend your request" ?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3100
Registered: 08-2008
Posted on Thursday, April 14, 2011 - 08:15 pm:   

Hi Ehsan,

If the server is down (TCP connection fails, or HTTP response times out), then the 2-way command will be retried.

If a connection can be made to the server, but there is a problem at the server, and it returns an error response, then NowSMS will not retry. (It renames the file with a .BAD extension in the SMS-IN directory. It is possible to rename with .IN extension to trigger reprocessing.)

--
Des
NowSMS Support
Ehsan hamideh
New member
Username: Ehamideh

Post Number: 2
Registered: 04-2011
Posted on Saturday, April 16, 2011 - 11:28 am:   

thanks for your response.
"If the server is down (TCP connection fails, or HTTP response times out), then the 2-way command will be retried."
for how long it will retry ? and what the period between each time of retrying?
Ehsan hamideh
New member
Username: Ehamideh

Post Number: 3
Registered: 04-2011
Posted on Sunday, April 17, 2011 - 10:40 am:   

Any help?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3109
Registered: 08-2008
Posted on Monday, April 18, 2011 - 10:03 pm:   

Indefinitely.

Current behaviour is to attempt to process other queued 2-way messages before looping back around to try the one that failed again.
Ehsan hamideh
New member
Username: Ehamideh

Post Number: 4
Registered: 04-2011
Posted on Tuesday, April 19, 2011 - 07:44 am:   

Thanks Desosms