Transaction timeout
Why might a transaction work fine on local, but then get a timeout when deployed. Same DB. Same Node version.
Using NextJS deployed in a vercel serverless env. Exact same user. Exact same auth system. Exact same DB. Exact same project. Only real difference is one is running locally and one is deployed to vercel. Even worse is the transaction succeeds. The data is saved and I still get that error.
3 Replies
Could you share the exact error message you are observing?
Are the regions in which your code runs locally and the one where you are deploying the same?
Sorry should have added that. Think I was just frustrated after being stumped all day.
I've checked and this only fires once.
ok i think I might have figured it out. I wrote that endpoint a while back and forgot I had some transactions nested in some of the functions in addUser. So I think transactions within transactions is illegal. However, why does this work on local?
Yep, that fixed...but why lol
I am glad to hear that you were able to resolve this.