[TRPCClientError]: Converting circular structure to JSON

I'm getting this error only in production (Vercel). I'm using tRPC, Supabase, Clerk. The website crashes right after login.
Browser error:
Application error: a server-side exception has occurred (see the server logs for more information).
Vercel logs:
l [TRPCClientError]: Converting circular structure to JSON
    --> starting at object with constructor 'Timeout'
    |     property '_idlePrev' -> object with constructor 'TimersList'
    --- property '_idleNext' closes the circle
    at l.from (/var/task/.next/server/chunks/696.js:7:53047)
    at /var/task/.next/server/app/activity/page.js:1:48095
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  meta: undefined,
  shape: undefined,
  data: undefined,
  digest: '2788403914',
  [cause]: TypeError: Converting circular structure to JSON
      --> starting at object with constructor 'Timeout'
      |     property '_idlePrev' -> object with constructor 'TimersList'
      --- property '_idleNext' closes the circle
      at JSON.stringify (<anonymous>)
      ... 5 lines matching cause stack trace ...
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
    code: 'INTERNAL_SERVER_ERROR',
    name: 'TRPCError',
    [cause]: TypeError: Converting circular structure to JSON
        --> starting at object with constructor 'Timeout'
        |     property '_idlePrev' -> object with constructor 'TimersList'
        --- property '_idleNext' closes the circle
        at JSON.stringify (<anonymous>)
        at /var/task/.next/server/chunks/101.js:1:12977
        at t (/var/task/.next/server/chunks/338.js:13:359299)
        at a (/var/task/.next/server/chunks/338.js:13:359613)
        at c (/var/task/.next/server/chunks/338.js:13:353322)
        at /var/task/.next/server/app/activity/page.js:1:47939
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
  }
}
Solution
idk what the issue was, but I recreated the setup and it works now
Was this page helpful?