I would like to get help on how to fix the following error in a project I uploaded to Vercel:
Unanswered
Somali posted this in #help-forum
SomaliOP
Locally it works fine without any errors like the image. I don't know what is causing it.
13 Replies
SomaliOP
If anyone has encountered this error, please help me.
Dwarf Hotot
is api response a valid json it seems like just not a valid json
pleas share the code of the api as well
SomaliOP
Thank you. I will share my code
SomaliOP
It's working fine in the dev environment, is this an API error?
you might want to do this: https://nextjs-forum.com/post/1299276101549555712#message-1299281696474140713 (<---- click)
SomaliOP
It's been working fine so far. I haven't changed any APIs, but I'm getting a strange error.
How about you?
@Somali we can't look into your code and we also can't read your code somehow magically. If you want answers from us, share more details.
SomaliOP
Got it. I will share the code.
Dwarf Hotot
no code ig ¯\_(ツ)_/¯
yea, if OP don't want to share code it's fine, but then he won't receive an answer as well
SomaliOP
Sorry. i have to discuss with my team.