Hey, I figured now would be a good time to ask for help, While I have a few ideas of things to explore, they feel like grasping at straws at this point.
Basically I’m getting 502s from graphql queries. It did happen after a deploy, but there were no changes to the API so I’m not sure how it broke.
The return errors as well a what’s logged in the neflify functions log is identical, and pretty cryptic:
The weirdest thing I think is that the issues seems to be intermittent, It mostly fails, but every once and a while it works .
Ideas that I’m yet to try are
add some logging to my resolvers to get some insights (however I think this might be an integration issue with amazon, is the error coming from their load balancer, in which case this is unlikely to help)
I thought about setting up connection pooling for my heroku/postgresql db, but I doubt this will do anything since I wouldn’t have hit the 100 connection limit yet as There are no users, just me so far.
Any information I should add? Tips or trouble shooting ideas much appreciated.
I had this issue starting yesterday morning – and you’re the second person today to bring it up. Seems like something may have changed on Netlify’s end to make this more prevalent. It seems that this is a bug from an older version of Prisma, but upgrading Prisma to 2.9.0 (which Redwood 0.20.0 does) fixed the issue for me.
Also, if you run into any build errors when you deploy your upgrade to 0.20, you might want to take a look at this thread in which @thedavid was nice enough to help me out.
Nope, 0.18.0. But I haven’t touched that function in two months, no idea why it would suddenly start failing.
I wonder if 0.20.0 is really the fix, or just the fact that it’s getting redeployed kicks something into gear over at Netlify’s side. Kinda like having to restart after a spinning beachball of death.
I wonder if 0.20.0 is really the fix, or just the fact that it’s getting redeployed kicks something into gear over at Netlify’s side
My choice of words above was a little misleading – if I’m reading this Github correctly it sounds like the cause is an incompatibility between older versions of Prisma and node 12.19.0 (not a “prisma bug” as I said earlier.)
Maybe something happened a few days ago to cause a subset of Netlify function servers to run 12.19.0? That’s my best guess
Hello, just wanted to jump in here to mention that I saw this happening on my prod environment, where no changes were made since September. No code, or environment var changes, or even a deployment.