morphic icon indicating copy to clipboard operation
morphic copied to clipboard

[BUG] I've been getting errors after deploying with Vercel.

Open jaychoubaby opened this issue 1 year ago • 5 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

image

Expected Behavior

Application error: a client-side exception has occurred (see the browser console for more information).

I have looked into similar questions, but I couldn't find an answer.

Steps To Reproduce

After I input the message, this error pops up during the response process.

Environment

chrome 127.0.6533.99

Anything else?

No response

jaychoubaby avatar Aug 13 '24 07:08 jaychoubaby

Have you checked the Vercel Runtime Logs? https://vercel.com/docs/observability/runtime-logs#view-runtime-logs

miurla avatar Aug 13 '24 13:08 miurla

I got the same error. Redis setup is obligatory. After setting the environment variables UPSTASHREDISRESTURL and UPSTASHREDISRESTTOKEN, the error is gone.

irosyadi avatar Aug 26 '24 21:08 irosyadi

@irosyadi Thank you for sharing. Those error messages will also be output to Vercel's error logs. First, please check both the client and server error logs.

miurla avatar Aug 27 '24 01:08 miurla

I got the same error. Redis setup is obligatory. After setting the environment variables UPSTASHREDISRESTURL and UPSTASHREDISRESTTOKEN, the error is gone.

Adding these two properties does make it work properly, but occasionally it still throws errors. My understanding is that I shouldn't need the history because it relies on Redis, and UPSTASHREDISRES doesn't seem very stable.

jaychoubaby avatar Aug 27 '24 06:08 jaychoubaby

Try going to your project's settings in Vercel, then navigate to Settings > Functions. Configure the region to the one closest to you and set the maximum function duration to 60 seconds (higher durations are available with paid plans) then redeploy your project.

alpacaPwaa avatar Nov 23 '24 04:11 alpacaPwaa