-
Notifications
You must be signed in to change notification settings - Fork 751
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
Failing behind http proxy #579
Comments
Hi there, the error message that was wrapped indicates that your proxy server wasn't able to resolve the DNS for
That's the Stripe default testmode secret key. Your response should look similar to:
As well as contain debugging info from curl and your proxy. If you'd prefer to share this information privately, please contact Stripe support and reference this GitHub issue. Thanks! |
Hi @fred-stripe , Here it is the response from the curl you gave me:
|
Hi @mfloriani, thanks for reporting this. We recently broke support for HTTPS proxies when we enabled persistent connections by default in #560. A fix will be released soon. Sorry for the inconvenience! |
Fixed in 6.26.1. |
I am trying to use the library from behind a http proxy according to the documentation.
Here the code I used to test the lib (secret key and proxy were hidden on purpose):
But running the code above I get the error below:
After some time trying different things I decided to change the following function inside the
stripe.js
file:stripe-node/lib/stripe.js
Line 239 in 44fd7d3
The change that I did was basically forcing to use the
https_agent
once it was always hitting theelse
condition. As you can see:
By doing that I could finally access Stripe using the library.
What would be the best solution?
The text was updated successfully, but these errors were encountered: