Help With Timeout On Serveless
Hello, I am almost losing all my hair trying to figure this out
I have a serveless application, and I have a couple lambdas.
First, I tried to use Pool to generate the connections, bu then it never closes, and the lambda gets a timeout
Then, I tried closing the connection up on the handler, but it appears as if it is not closing, and I still get a timeout
Then, I tried to change to Single Client, but I cannot out out the schemas, it will either not recognize the schema, or see the table as undefined
Tried both node-pg and postgres-js
The kicker: locally, it all works wonders, to I cannot help but thing that the problem is between the serveless and the lambda way of working
Any help? Or tips?
0 Replies