UnhandledRejection: FetchError

UnhandledRejection: FetchError

Hello everyone,

I have just noticed this error showing up in the terminal. I am wondering if anyone else has had this before?

Currently working on a react/nextjs app.
React 18.2.0
Next 12.3.1

error - unhandledRejection: FetchError: invalid json response body at https://hushed-chat.thinbackend.app/DataSyncController reason: Unexpected token < in JSON at position 0
    at \node_modules\next\dist\compiled\node-fetch\index.js:1:51220
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  type: 'invalid-json'

This could be a server error. Can you reproduce that error?

I will keep an eye on it, I am not having this error currently. Its not showing in the console right now.

1 Like