Skip to content
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

Deployment: 500 internal server error from show-route/ #52

Open
minju25kim opened this issue Jul 7, 2022 · 1 comment
Open

Deployment: 500 internal server error from show-route/ #52

minju25kim opened this issue Jul 7, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@minju25kim
Copy link
Contributor

Local host render fine/well website for showing route page.

But Vercel deployment has 500 internal server error for showing route page.

route data|: archway to east acton

@minju25kim minju25kim added the bug Something isn't working label Jul 7, 2022
@joe-dev-public
Copy link
Contributor

joe-dev-public commented Jul 8, 2022

We'll need to completely rethink how we manage database connections, pools, etc., similar to what this article discusses (they're using a v similar stack): https://jaygould.co.uk/2022-04-06-too-many-connections-for-role-error-postgres-serverless-vercel%20copy/

We might also need to think about timeouts etc. so that one/a few simultaneously users don't just crash the app (but it'll potentially run quite slow for them).

A bunch of digging in our connections.js and node-postgres docs required! (https://node-postgres.com/api/pool etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants