Replies: 1 comment 1 reply
-
Hi, @mar1n. Can you please provide some additional context around the reproduction of this behavior?
I think the difference you experience may be related to how Axios works in the browser and Node.js. In the browser, Axios uses |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know that Axios dropped sending body/data for GET method.
So when I do in handler:
const { firstName } = await req.json();
This doesn't work in browser.
I have this error message:
SyntaxError: Unexpected end of JSON input
But when I am lunching test in server/node environment(JEST) everything is OK I am receiving body/data.
Does any know why?
Beta Was this translation helpful? Give feedback.
All reactions