yaade icon indicating copy to clipboard operation
yaade copied to clipboard

Bug: Server proxy corrupts JSON

Open mgmorcos opened this issue 2 years ago • 2 comments

Server proxy seems to strip escape characters from JSON request bodies, making them invalid.

Observed in diff between identical requests sent from (a) Axios and (b) Yaade configured to use server proxy. In the screenshot below, slash has been removed by Yaade, so the double quotation mark is no longer escaped, and the JSON becomes invalid.

Screenshot 2023-09-30 at 11 40 09 AM

Web inspector shows the slash is present when the request leaves the browser, so the corruption may be happening in the server proxy.

Running Yaade in Docker Compose on Debian Buster (amd64).

mgmorcos avatar Sep 30 '23 18:09 mgmorcos

Interesting find. We don't do anything with the response. If this is true then the web client we are using might do some formatting. I will test it on my side and report back.

jonrosner avatar Oct 02 '23 11:10 jonrosner

Thank you @jonrosner!

Not the response, but the request body that's corrupted. Here is the original issue that I misfiled with Hapi.js, in case it can be of use:

https://github.com/hapijs/hapi/issues/4461#issuecomment-1741188420

mgmorcos avatar Oct 03 '23 00:10 mgmorcos