2-Way HTTP command issue | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through August 10, 2011 ⬆ |
◄ ► |
Author | Message | |||
Ehsan hamideh New member Username: Ehamideh Post Number: 1 Registered: 04-2011 |
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 |
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 |
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 |
Any help? | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 3109 Registered: 08-2008 |
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 |
Thanks Desosms |