Getting weird error on Vercel when deploying app

So my app works fine locally, however, I pushed to vercel and everything is fun except the fact my TRPC Returns this error:
"TRPCClientError: Unexpected token 'A', "An error o"... is not valid JSON
at u.from (https://myapp.vercel.app/_next/static/chunks/pages/_app-e0b32bccfebdf428.js:1:20800)
at https://myapp.vercel.app/_next/static/chunks/pages/_app-e0b32bccfebdf428.js:1:24691"
"TRPCClientError: Unexpected token 'A', "An error o"... is not valid JSON
at u.from (https://myapp.vercel.app/_next/static/chunks/pages/_app-e0b32bccfebdf428.js:1:20800)
at https://myapp.vercel.app/_next/static/chunks/pages/_app-e0b32bccfebdf428.js:1:24691"
I'm not sure what to do here as it works fine on 2 different enviroments.
2 Replies
barry
barry3y ago
share repo
neochrome
neochromeOP3y ago
FUNCTION_INVOCATION_TIMEOUT found the issue my API takes too long Fixed by optimizing a bit so its solved lol
Want results from more Discord servers?
Add your server