Response code 500 when sending 10 MMS request

Response code 500 when sending 10 MMS request SearchSearch
Author Message
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5733
Registered: 08-2008
Posted on Wednesday, October 12, 2016 - 02:52 pm:   


quote:

Hi Des,

Currently we are sending 10 MMS request to NOWSMS via our internal application but we are getting error Response code 500 which means few request out of 10 batch size are getting failed in our system as nowSMS is unable to process all the request in one shot.

Kindly advice how can we increase the connection time out / No. of Http connection and if we want to send 20 mms request at time to nowSMS what setting we need to change?




Hi Pankaj,

I need to understand the context of this 500 error.

Where does it occur?

HTTP response from NowSMS to your application?

Or in the MMSC logs when NowSMS submits to mobile operator?

If the latter, then your mobile operator may have a limit on the number of recipients per MMS.

By default, for an MM1/modem connection, NowSMS imposes a limit of 50 recipients per MMS. If a message is sent to more than 50 recipients, NowSMS will split the message into groups of no more than 50 recipients. For example, if you send to 51 recipients, NowSMS will make 1 submission for the first 50 recipients, then another submission for the 1 remaining recipient.

Some mobile operator may have lower recipient limits. This limit can be set in the "MMSC Routing" definition under the "Max Recipients per Message" setting. You might want to try setting this to 1 to have NowSMS submit one at a time.

--
Des
NowSMS Support
Pankaj Mathur
New member
Username: Pankajmathur

Post Number: 14
Registered: 08-2015
Posted on Thursday, October 13, 2016 - 10:13 am:   

Hi Des,

We are getting HTTP connection time out from nowSMS to our application.

Also previously "Max Recipients per Message" was set to Default which i have changed it to 50. So does this mean now we can send 50 MMS message to nowSMS in single batch?

What is default in "Max Recipients per Message"?

Thanks
Pankaj
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5739
Registered: 08-2008
Posted on Thursday, October 13, 2016 - 09:09 pm:   

Hi Pankaj,

That setting will have no impact on the problem that you are seeing. It affects communication between NowSMS and the mobile operator. 50 is currently the default setting for an MM1 connection.

This is all irrelevant if you are experiencing a timeout between your application and NowSMS.

Are you using accounting callbacks? If so, then they are processing too slowly. There will be one callback per recipient, and the HTTP response is not returned until all callbacks are complete.

An MMSCDEBUG.LOG would give me a better idea of what is happening, but based upon the information so far, this is my best guess.

--
Des
NowSMS Support
Pankaj Mathur
New member
Username: Pankajmathur

Post Number: 15
Registered: 08-2015
Posted on Friday, October 14, 2016 - 07:06 am:   

Hi Des,

How to change the call back settings. Please explain more.

Also attaching the MMSCdebug log with you please check.

application/octet-stream
MMSCDEBUG.LOG (70.7 k)
Pankaj Mathur
New member
Username: Pankajmathur

Post Number: 16
Registered: 08-2015
Posted on Tuesday, October 18, 2016 - 09:25 am:   

Hi Des,

Request you to please update on the status?

Thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5741
Registered: 08-2008
Posted on Tuesday, October 18, 2016 - 07:06 pm:   

Sorry...I had looked at the log and did not see any indication of problems. So I was hoping you would come back with more information.

But thinking about it, I now realize that you are using URL submission and even though it is MMS, the details would be recorded in the SMSDEBUG.LOG, so I actually need to see that. Sorry it has taken me so long to get this understanding.

--
Des
NowSMS Support
Pankaj Mathur
New member
Username: Pankajmathur

Post Number: 17
Registered: 08-2015
Posted on Thursday, October 20, 2016 - 06:59 am:   

Hi Des,

Please find attached the SMSCdebug log. Request your quick reply.
application/octet-stream
MMSCDEBUG.LOG (70.7 k)


Thanks
Pankaj Mathur
Pankaj Mathur
New member
Username: Pankajmathur

Post Number: 18
Registered: 08-2015
Posted on Thursday, October 20, 2016 - 07:01 am:   

Hi Des

Please ignore the previous attachment. attached the SMSCdebug Log.

Thanks
Pankaj Mathur
application/zip
SMSDEBUG.zip (7364.5 k)
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 5744
Registered: 08-2008
Posted on Thursday, October 20, 2016 - 11:47 am:   

Hi Pankaj,

OK, I don't see any processing delays that would explain why you are seeing timeouts. Accounting callbacks are not being used, so that advice does not apply.

But I do have a theory that your app is getting confused by keep-alive sockets, as I do see odd timings for when the app releases the connection.

Edit SMSGW.INI and add this setting under the [SMSGW] header:

EnableKeepAlive=No

--
Des
NowSMS Support