Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting request timeout per request #712

Closed
kristijanhusak opened this issue Oct 18, 2019 · 1 comment
Closed

Setting request timeout per request #712

kristijanhusak opened this issue Oct 18, 2019 · 1 comment

Comments

@kristijanhusak
Copy link

Hello,

is there a way to set request timeout only for single request?

I want to make certain api calls to timeout earlier, so i can retry them. I would assume something like this:

// timeout after 20 sec
stripe.paymentIntents.capture(intentId, { timeout: 20000 });
@paulasjes-stripe
Copy link
Contributor

Hi there. Unfortunately it's not possible at this time, but it will be very soon. I'm working on adding this for timeout and other global settings. You can follow along here: #703

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants