-
-
Notifications
You must be signed in to change notification settings - Fork 738
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
HTTP requests made via Stripe SDK hang #2785
Comments
Can you please remove the |
@mikicho the I did a little bit of digging and I found this PR that might be related: stripe/stripe-node#1854 (which, funnily enough, is an effort to get the |
Oh.. this is probably the problem. When you import |
@mikicho I considered opening up an issue the Plus it appears that the Stripe team has done some work on this front: Happy to raise an issue there if you are sure it's an issue with the Stripe SDK. Thanks for all your work on this, excited for a proper v14 release! |
Thanks! Can you please provide a more straightforward example without |
This should be the exact location where the issue happens: https://github.com/stripe/stripe-node/blob/768206df1b9d025853d5e34e6046beb502effdd9/src/net/NodeHttpClient.ts#L83 Maybe this helps already. |
@sonntag-philipp Yes.. this is a limitation of our current interception implementation. We can't |
I found that the workaround mentioned in this comment (thanks @jeyj0!) solves my problem. I've filed a bug report in the @mikicho I'll keep this open and let you decide how to triage this. |
🎉 I'll close this one; we track this issue on the |
Please avoid duplicates
Reproducible test case
https://github.com/kanadgupta/nock-beta-stripe-sdk
Nock Version
nock@14.0.0-beta.14
Node Version
v20.16.0
TypeScript Version
No response
What happened?
HTTP requests using Stripe's Node.js SDK will hang indefinitely if
nock
is loaded at all (whether or not there is an interceptor defined for the Stripe request).I am not well-versed in
nock
nor in the Stripe SDK but I can confirm that this issue was not present innock@14.0.0-beta.7
nor innock@latest
(e.g., beforemswjs/interceptors
was introduced).Would you be interested in contributing a fix?
The text was updated successfully, but these errors were encountered: