#MidnightCrow
1 messages · Page 1 of 1 (latest)
Hi there
Sure, can you share the request ID?
Is it a lock error?
Or a rate limit?
Well one has to do with the number of requests you are making at the same time and the other has to do with attempting to access the same object while another request is handling that object. Have you read through https://stripe.com/docs/rate-limits#object-lock-timeouts yet?
hmm yes it seems like the lock error, thats what I am asking. If you could tell me which two calls are causing the issue
Looks like it is being help due to actions involving an Invoice for that customer at the same time
Looks like specifically finalizing/paying in_1N3huoDKXn4ivDe3PWCi9SLq which was happening concurrently
both of those calls have a status 200, and they are one second after each other. This wouldn't match up with when I am seeing the error either.
That's not how it works
Finalizing an Invoice and then the subsequent payment of it may take several seconds, even if the response from the API request itself is a 200 immediately.
There are various processes that go on behind the scenes, especially with Invoices
During that time, you can't access any object related to that Invoice, like the Customer
If you hit these errors you basically need to space your requests out a bit more and have a retry policy in place