#Huzaifa
1 messages · Page 1 of 1 (latest)
Hello
Yep so this is what is called a "lock timeout". You can read more about them here: https://stripe.com/docs/rate-limits#object-lock-timeouts
You basically want to just set up retry handling for whenever you encounter this error
can you guide me how can i set this
At a high-level sure, but I can't write code for you here.
if i can set it from dashboard
that will be okay too
You want to check the response to your request and if it is a 429 with an error_code of lock_timeout then you write code to retry the same request x amount of seconds later
you mean webhook response ???
No this error occurs from your code making a request to the Stripe API
Do you have a request ID for this 429?
i am making api calls in webhook api
but i always get something there
can i just simply use below code to solve this problem
const stripe = Stripe('sk_test_...', {
maxNetworkRetries: 2,
});
?????
Yes overall that should also solve most if not all of the issues here
thats nice
so what should be the nice value for it
2 or i can make it 5 or more