-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled Promise Rejection on Vercel + Supabase #2647
Comments
Not sure why its happening on a single route. Are you using |
Yes I am. I tried removing it but I still get the same problem. The only thing I can think of that was weird with my deployment was that I didn't update for a long time from around 9 months ago, and then suddenly updated to the newest version a few weeks ago and then the problems started appearing. I'm thinking that the database was meant to have updated in earlier versions, but I skipped through them. |
@yvanlok Did you figure this out? I too am getting the same problem and I tried adding pgbouncer. Vercel and Supabase deployment. |
Just reviewing the docs here. Did you update the prisma schema file and add the |
@franciscao633 , I had not looked at Umami's docs in a while and didn't even see that. I just tried and doing this worked! |
Yes I had tried doing this already but I had no luck. I unfortunately already moved to Cloudflare Analytics as it was free and didn't require self-hosting. |
That's odd because I think it's working fine for me after I manually changed my fork's schema.prisma file like so: https://github.com/BradNut/umami/blob/master/db/postgresql/schema.prisma#L8 Then you have two environmental variables in Vercel. That didn't work for you? |
https://github.com/yvanlok/umami/blob/master/db/postgresql/schema.prisma |
Describe the Bug
After checking Vercel Logs, I can often see that the root
/api/websites/*
is often getting this error with an error code 500. All the other routes work fine, but this route is often getting this error. It is a Vercel Serverless Function if that makes any difference.Database
PostgreSQL
Relevant log output
Which Umami version are you using? (if relevant)
No response
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Vercel + Supabase
The text was updated successfully, but these errors were encountered: