0

I am getting this error and I am not able to figure out the cause.

code:

This is my code, please review

Tried to do some dynamic routing, expected to get an output rather I got this error

1 Answers1

0

Send your browser to the localhost address and see what the json looks like. I imagine the localhost:3000/api/hello + id endpoint is failing to return valid JSON.

also, looks like FetchError: invalid json response body reason: Unexpected token < in JSON at position 0 - nextjs

Craige
  • 11
  • 2