miurla / morphic

An AI-powered search engine with a generative UI
https://morphic.sh
Apache License 2.0
5.9k stars 1.45k forks source link

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

Open jaychoubaby opened 1 month ago

jaychoubaby commented 1 month ago

Is there an existing issue for this?

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

miurla commented 1 month ago

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

irosyadi commented 2 weeks ago

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

miurla commented 2 weeks ago

@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.

jaychoubaby commented 2 weeks ago

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.