Next.js Discord

Discord Forum

Unexpected number in JSONat position 1

Answered
Red wood ant posted this in #help-forum
Open in Discord
Red wood antOP
Hello. I just got a Syntax Error while I have been trying to make api in Next 13.
I think there's any problem that I couldn't found.
Please, I need your helps.
Answered by riský
you are using form data... not json...
View full answer

8 Replies

is the body of your POST req really json?
Red wood antOP
It maybe. I have testing with postman.
Is here any problem?
you are using form data... not json...
Answer
Red wood antOP
let me see.
It's true. That's very kind of you.
also, if you are using json, also make sure to send the headers just to be extra clear
but no problem to help you with your issue 🙂 i wish the error was better tho
Red wood antOP
Okay. Have a nice day.