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

Guidance progressing beyond the example #194

Open
jlag34 opened this issue Apr 6, 2023 · 0 comments
Open

Guidance progressing beyond the example #194

jlag34 opened this issue Apr 6, 2023 · 0 comments

Comments

@jlag34
Copy link

jlag34 commented Apr 6, 2023

Hi Matt,

I'm migrating off AWS Aurora PG to Heroku PG and found your article you wrote in 2019, using the code from this repo. I'm basing my Serverless Framework API around this example but I'm running into issues due to hanging calls and/or pool errors.

  1. If I don't use await pgPool.end(), my API calls will hang
  2. If I use await pgPool.end() it will work once, then I will run into this error: Cannot use a pool after calling end on the pool

I made a post on Stack Overflow here and I was wondering if you could take a peak at it. Mostly around when to open/close the connection to the database to prevent hanging calls and/or the pool error.

Thanks,
Joe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant