You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem with send jason data because in node server I get this error:
Error: invalid json
at parse (...../node_modules/body-parser/lib/types/json.js:84:15)
.....
If I try to print the body in ...../node_modules/body-parser/lib/types/json.js
.....
function parse(body) {
console.log(body);
if (body.length === 0) {
// special-case empty json body, as it's a common client-side mistake
// TODO: maybe make this configurable or part of "strict" option
return {}
}
.....
I get this log:
email=my%40mail.com&password=mypassword
Some ideas?
The text was updated successfully, but these errors were encountered:
This is my code:
I have a problem with send jason data because in node server I get this error:
Error: invalid json
at parse (...../node_modules/body-parser/lib/types/json.js:84:15)
.....
If I try to print the body in ...../node_modules/body-parser/lib/types/json.js
I get this log:
Some ideas?
The text was updated successfully, but these errors were encountered: