Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token ' in JSON at position 0 #8

Open
kush-13 opened this issue Aug 15, 2021 · 0 comments
Open

Unexpected token ' in JSON at position 0 #8

kush-13 opened this issue Aug 15, 2021 · 0 comments

Comments

@kush-13
Copy link

kush-13 commented Aug 15, 2021

unmodified code of the repo gives error when i make the following put request :
curl -X PUT http://localhost:3001/api/v1/clients/1 -H "Content-Type: application/json" -d '{"status":"in-progress", "priority": 6}'
error :
SyntaxError: Unexpected token ' in JSON at position 0 at JSON.parse (<anonymous>) at createStrictSyntaxError (D:\web\shiptivitas-2\node_modules\body-parser\lib\types\json.js:158:10) at parse (D:\web\shiptivitas-2\node_modules\body-parser\lib\types\json.js:83:15) at D:\web\shiptivitas-2\node_modules\body-parser\lib\read.js:121:18 at invokeCallback (D:\web\shiptivitas-2\node_modules\raw-body\index.js:224:16) at done (D:\web\shiptivitas-2\node_modules\raw-body\index.js:213:7) at IncomingMessage.onEnd (D:\web\shiptivitas-2\node_modules\raw-body\index.js:273:7) at IncomingMessage.emit (events.js:327:22) at endReadableNT (internal/streams/readable.js:1327:12) at processTicksAndRejections (internal/process/task_queues.js:80:21)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant