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

fetchStripeSignature doesn't work well in a highly concurrent scenario #934

Open
tobiasr opened this issue Sep 12, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@tobiasr
Copy link

tobiasr commented Sep 12, 2023

Describe the bug
We have an app that does quite a few requests on load. Each requests needs to call fetchStripeSignature to get the signature to send to the server. Some of the calls are made very concurrently.

It seems like (at least in development) that when the calls to fetchStripeSignature are to quick, we just get stuck on await and it never returns.

To solve this we've had to add a "sleep" based on the number of pending requests so to not call fetchStripeSignature to quickly.

Expected behavior
That it is possible to call await fetchStripeSignature on each request without having to either cache the signature or implement "sleep"-patterns.

@tobiasr tobiasr added bug Something isn't working needs-triage labels Sep 12, 2023
@gabrielhurley-stripe
Copy link
Contributor

Thanks for the report. We also became aware of this issue internally, and we're working on a fix. ETA is TBD, but it's definitely on our radar and not intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants