-
Notifications
You must be signed in to change notification settings - Fork 555
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
Net::HTTP::Persistent::Error too many connection resets #780
Comments
Hey @rahim-figs, thanks for reporting this. We're looking into it. Could you share a simplified version of your job's code? Specifically, what API requests it's sending. Are you updating the subscriptions directly via |
Hi @ob-stripe, I am fetching the subscriptions and then calling
Thanks for looking into this. |
@brandur-stripe We briefly discussed this IRL, but to recap: I'm fairly sure this issue is caused by This blog post suggests that as a workaround, we could catch the error, close the connection, and retry the request. Unfortunately, I think Faraday doesn't expose a way for us to close the connection (lostisland/faraday#241). We could maybe just drop the Faraday connection entirely and create a new one, but that wouldn't work if the user is passing a custom connection object. Any idea for how we could fix this without resorting to a larger rewrite (i.e. dropping Faraday and |
The only reasonably easy thing I can suggest is to revert I'm kinda thinking we should just bite the bullet though and kill both Faraday and |
+1, using Ruby 2.5.1 Experiencing the same issue after bumping from 3.31.1 to 4.17.0 (preparing for SCA & PaymentIntents..). It actually occurs during my "checkout" process where:
Tried to tweak the |
@ob-stripe @brandur-stripe I was thinking about submitting a new issue on this topic (killing |
Yeah, internally we're pretty much all aligned now that we want to do this. We've also got an internal issue for it, so we're tracking it there. |
I'm also getting the following after upgrading from
How do I resolve this? The same code works perfectly on v3.0 though. I'm having this issue only in rspec. am I using any deprecated dependencies?
|
@alirezaseifi If you have webmock in your test stack (or any gem like it that's patching underlying HTTP adapters), you might want to try updating that too, and making sure that it's managed to find its way to a relatively current version. Would you mind following up with [email protected] rather than here though? Especially given that this is a problem that's occurring in your test suite, it seems very likely that it's something specific to your particular configuration. |
This should be fixed stripe-ruby 5.0. The gem no longer uses |
Ruby version: 2.4.5
stripe-ruby version: 4.15.0
I recently upgraded from stripe-ruby version 3.15.0 to 4.15.0. There is a job which updates a lot of stripe subscriptions. For the last 2 days, I have been getting the following error:
too many connection resets (due to end of file reached - EOFError) after 71 requests on 67701880, last used 0.067928815 seconds ago (Net::HTTP::Persistent::Error)
Should I tweak the timeout settings?
The text was updated successfully, but these errors were encountered: