Dave Scott
Posts: 0
Joined: Tue Oct 09, 2012 11:24 am

POST Through Proxy Changes JSON payload

Hi,

As of 6 days ago, our app has stopped working properly due to the Appery proxy modifying the JSON payload in some way such that my REST service is no longer able to process the request.

There have been no changes to my service, so I assume that there is some change on the proxy Tunnel for POST requests?

Interestingly, GET calls through the proxy are still working fine..

Also interesting, if I test the POST call through the "TEST" section of the Service Settings and have the Proxy selected, it works just fine. Does a 'TEST' call go through a different Tunnel than the 'Production' tunnel?

Can you please check for me as is causing us huge problems here...

Dave Scott
Posts: 0
Joined: Tue Oct 09, 2012 11:24 am

POST Through Proxy Changes JSON payload

Hi Illya,

Yes, this problem is still persisting now..

Regards,
Dave

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

POST Through Proxy Changes JSON payload

Thanks for clarification, Dave.

Is it possible to share with us for testing purpose your app with this service call?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

POST Through Proxy Changes JSON payload

And also would be helpful, if you show us error message that you're getting in the browser with POST method.

Dave Scott
Posts: 0
Joined: Tue Oct 09, 2012 11:24 am

POST Through Proxy Changes JSON payload

The error code is:

{"code":"PTCT022","description":"Error while sending request: Type must be in the 'maintype/subtype; parameter=value' format"}

Sure, the app and proxy & service call have been shared with support.

Also, check your Zendesk ticket 6764 for more details.

Thanks for your help..!!

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

POST Through Proxy Changes JSON payload

Dave,

Sorry, I now see your email - we are working on it.

Dave Scott
Posts: 0
Joined: Tue Oct 09, 2012 11:24 am

POST Through Proxy Changes JSON payload

Also, the service works correctly when I disable the Chrome Cross Origin & send it direct to my service from the App bypassing the PROXY.

So, the bug is definitely in the proxy..

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

POST Through Proxy Changes JSON payload

Hello Dave,

Yes, this is bug, we are working on it. Hope the hotfix for it will be next week. Could you please try to use the old proxy until?

Dave Scott
Posts: 0
Joined: Tue Oct 09, 2012 11:24 am

POST Through Proxy Changes JSON payload

Hi Evgene,

Thank you for confirming that this is a bug - please keep me posted on the hotfix release.

The 'old' proxy switch does not work either.. When I try that I get the following error and the request does not make it to the REST service end point logs..
{"code":"PTCT022","description":"Error while sending request: java.lang.ArrayIndexOutOfBoundsException"}

So, until the proxy bug is fixed my only work around is to disable web-security in Chrome browsers on all terminals and disable the proxy - sending the request directly to the REST service..

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

POST Through Proxy Changes JSON payload

Hello Dave,

Could you please try using the old proxy - it should be working now.

Return to “Issues”