steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

max length of service request parameter

I have a service which sends pushnotificationtoken as a request parameter
iOS works fine but Android pushnotificationtoken is extremely long and the service fails

I am using get with Json in the Service

How can I pass the android pushnotificationtoken as a request to the service

regards
Steve

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

max length of service request parameter

How big is the request parameter? Is that the actual parameter name or its value? Does it fail with an error message?

steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

max length of service request parameter

Hi Max

its the Google pushnotificationtoken

APA91bF_ELmroyBbdGykpS9W5Inc4bP-X0FDOgNEjQpMNjlKE81Bc47gEmxoFvbUhtvKa1GUq1C0cC037bNjgo_X3wFO2YLHWhDibrLY1xDhHWLm2mnf8X6bXsfBaZxgQRnJ9T2Aigu

Service fails with error 400 Bad Request

If I cut 20 characters off the end of the request parameter the service works fine

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

max length of service request parameter

What service are you invoking? Can you do a POST instead? Does it work if you do a curl command?

steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

max length of service request parameter

Max

I have done some testing by varying the Request parameter value lengths in the Appery Service test screen

It appears there is a total request length limit of approx 217 characters

If I remove characters from ANY Request parameter so the total parameter values length is <= 217 then the service succeeds
If I add one character to the end of ANY Request parameter then the service test Fails

This is the same for GET, PUT, POST

This has got me beat

I am using the Appery Proxy on the Service

regards
Steve

steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

max length of service request parameter

Max

Fixed it

Added to my web.config on the webserver and now the service works fine

regards
Steve

steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

max length of service request parameter

that didn't post properly

added httpRuntime maxurllength = 500 to web.config

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

max length of service request parameter

Glad it's working.

Return to “Issues”