#MidnightCrow

1 messages · Page 1 of 1 (latest)

novel bisonBOT
clear ether
#

Hi there

#

Sure, can you share the request ID?

#

Is it a lock error?

#

Or a rate limit?

tiny ravine
#

req_7ry5xvVad0siwy

#

what is the difference

clear ether
tiny ravine
#

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

clear ether
#

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

tiny ravine
#

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.

clear ether
#

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