#william
1 messages · Page 1 of 1 (latest)
Hello! Can you give me the request ID showing the error? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Here it is req_jS4uRApLWuRROT
Looking...
Hm, good question! Going to need to investigate, will take a few minutes, hang on...
Okay, what happened here is that multiple requests to modify this Invoice were made in parallel. The specific request that failed started before the Invoice was finalized, but by the time that request actually got to the point where it was going to actually modify the Invoice the Invoice was finalized by that point.
The request took several seconds to process because so many ~simultaneous requests were made to modify this Invoice, and the request had to wait for the others to release their locks on the Invoice and the related objects.
The fix would be to make these requests in parallel, not all at once, and wait for the response from each one before moving on to the next.