[BUG] I've been getting errors after deploying with Vercel.
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
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
Have you checked the Vercel Runtime Logs? https://vercel.com/docs/observability/runtime-logs#view-runtime-logs
I got the same error. Redis setup is obligatory. After setting the environment variables UPSTASHREDISRESTURL and UPSTASHREDISRESTTOKEN, the error is gone.
@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.
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.
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.