2-way sms - Request returned invalid content type | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through April 13, 2018 ⬆ |
◄ ► |
Author | Message | |||
KKW New member Username: Kkw Post Number: 44 Registered: 01-2009 |
dear support, I have config 2way sms that with 'Command returns response text', when message coming into now, it will pass to backend server via http request and backend server will return the result for nowsms reply to subscriber. Already config the response with Content-Type: text/plain but still get 'Request returned invalid content type' error message. below pls found the debug log for ref. 14:23:33:574 [16] SMPPReceiveMessageCallback: inbound message: sender=85265822851, recip=*144*01, pid=0, dcs=0, msgFlags=0, udh=, msg=*144*01*123#, extraParms=SMPPOption_ms_local_gtaddress=85292040096; ServiceType=BR 14:23:33:574 [5] ThreadProcessInboundSMS: Processing 5A30E7C3.in... 14:23:33:574 [5] GetProgramToExecute: Found 2-way command prefix match * 14:23:33:574 [5] GetProgramToExecute: Best match so far for 2-way command prefix * 14:23:33:574 [5] GetProgramToExecute: http://xxx.xx.xx.xx:8081/ussdreq?requestfrom=cmhk&sender=@@SENDER@@&recipt=@@RECIP@@&messageid=@@MESSAGEID@@&servicetype=@@SERVICETYPE@@& smscroute=@@SMSCROUTE@@&msgdate=@@MSGDATE@@&msgtime=@@MSGTIME@@&binary=@@BINARY@ @&udh=@@UDH@@&pid=@@PID@@&dcs=@@DCS@@&message=@@FULLSMS@@ 14:23:33:574 [5] GetProgramToExecute: http://xxx.xx.xx.xx:8081/ussdreq?requestfrom=cmhk&sender=85265822851&recipt=%2A1 44%2A01&messageid=5A30E7C3.in&servicetype=BR&smscroute=SIMPLIFLY_USSD&msgdate=20 180109&msgtime=142333&binary=0&udh=&pid=00&dcs=00&message=%2A144%2A01%2A123%23&S MPPOption_ms_local_gtaddress=85292040096 14:23:33:574 [5] ThreadProcessInboundSMS: Executing http://xxx.xx.xx.xx:8081/ussdreq?requestfrom=cmhk&sender=85265822851&recipt=%2A1 44%2A01&messageid=5A30E7C3.in&servicetype=BR&smscroute=SIMPLIFLY_USSD&msgdate=20 180109&msgtime=142333&binary=0&udh=&pid=00&dcs=00&message=%2A144%2A01%2A123%23&S MPPOption_ms_local_gtaddress=85292040096 14:23:33:574 [5] RetrieveURL: Retrieving http://xxx.xx.xx.xx:8081/ussdreq?requestfrom=cmhk&sender=85265822851&recipt=%2A1 44%2A01&messageid=5A30E7C3.in&servicetype=BR&smscroute=SIMPLIFLY_USSD&msgdate=20 180109&msgtime=142333&binary=0&udh=&pid=00&dcs=00&message=%2A144%2A01%2A123%23&S MPPOption_ms_local_gtaddress=85292040096 14:23:33:574 [5] RetrieveURL: Retrieving ussdreq?requestfrom=cmhk&sender=85265822851&recipt=%2A144%2A01&messageid=5A30E7C 3.in&servicetype=BR&smscroute=SIMPLIFLY_USSD&msgdate=20180109&msgtime=142333&bin ary=0&udh=&pid=00&dcs=00&message=%2A144%2A01%2A123%23&SMPPOption_ms_local_gtaddr ess=85292040096 14:23:33:574 [5] RetrieveURL: GET /ussdreq?requestfrom=cmhk&sender=85265822851&recipt=%2A144%2A01&messageid=5A30E7 C3.in&servicetype=BR&smscroute=SIMPLIFLY_USSD&msgdate=20180109&msgtime=142333&bi nary=0&udh=&pid=00&dcs=00&message=%2A144%2A01%2A123%23&SMPPOption_ms_local_gtadd ress=85292040096 HTTP/1.1 User-Agent: Now SMS/MMS Gateway v2013.09.26 Accept: */* Host: xxx.xx.xx.xx:8081 14:23:33:589 [5] HttpResponseWait: Chunked response Ok 14:23:33:589 [5] RetrieveURL: HTTP/1.1 200 Content-Type: text/plain Date: Tue, 09 Jan 2018 06:23:33 GMT Connection: keep-alive Transfer-Encoding: chunked processing 14:23:33:589 [5] RetrieveURL: Saving keep-alive socket 14:23:33:589 [5] RetrieveURL: got success response 14:23:33:589 [5] RetrieveURL: 14:23:33:589 [5] ThreadProcessInboundSMS: Command not completed. Request returned invalid content type: 14:23:33:589 [5] ThreadProcessInboundSMS: HTTP/1.1 200 Content-Type: text/plain Date: Tue, 09 Jan 2018 06:23:33 GMT Connection: keep-alive Transfer-Encoding: chunked processing 14:23:33:589 [5] ThreadProcessInboundSMS: Processing complete 5A30E7C3.in... | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 8243 Registered: 10-2002 |
Hi, The lack of a line break between HTTP/1.1 200 and Content-Type suggests a problem in the HTTP header response. There should be a line break. -bn Bryce Norwood Now SMS/MMS Support |