Server Side Exception on Vercel Deployment

I'm getting the following error on vercel deployment using tRPC on Next.js And this is the server log, on vercel deployment.
 << query  #1 agent.getAll  {
input: undefined,
result: TRPCClientError: Unexpected token ; in JSON at position 4
at TRPCClientError.from (/var/task/.next/server/chunks/9719.js:1:1871)
at /var/task/.next/server/chunks/9719.js:1:6277
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
meta: undefined,
shape: undefined,
data: undefined,
[cause]: SyntaxError: Unexpected token ; in JSON at position 4
at JSON.parse (<anonymous>)
at parse (/var/task/.next/server/chunks/9719.js:5:4667)
at /var/task/.next/server/chunks/9719.js:5:3830
at onChunk (/var/task/.next/server/chunks/9719.js:5:3983)
at readStandardChunks (/var/task/.next/server/chunks/9719.js:5:4254)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async readLines (/var/task/.next/server/chunks/9719.js:5:4064)
at async parseJSONStream (/var/task/.next/server/chunks/9719.js:5:3670)
},
elapsedMs: 135
}
 << query  #1 agent.getAll  {
input: undefined,
result: TRPCClientError: Unexpected token ; in JSON at position 4
at TRPCClientError.from (/var/task/.next/server/chunks/9719.js:1:1871)
at /var/task/.next/server/chunks/9719.js:1:6277
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
meta: undefined,
shape: undefined,
data: undefined,
[cause]: SyntaxError: Unexpected token ; in JSON at position 4
at JSON.parse (<anonymous>)
at parse (/var/task/.next/server/chunks/9719.js:5:4667)
at /var/task/.next/server/chunks/9719.js:5:3830
at onChunk (/var/task/.next/server/chunks/9719.js:5:3983)
at readStandardChunks (/var/task/.next/server/chunks/9719.js:5:4254)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async readLines (/var/task/.next/server/chunks/9719.js:5:4064)
at async parseJSONStream (/var/task/.next/server/chunks/9719.js:5:3670)
},
elapsedMs: 135
}
This works fine on my local-machine both on normal server and on turbo-pack also.
No description
1 Reply
celeroncoder
celeroncoderOP8mo ago
Also it works fine on this auto-generated-URL by vercel / and not on the git-master one
No description
Want results from more Discord servers?
Add your server