-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add JSON::ParserError as a retry-able failure type. #799
Conversation
@pdrakeweb Thanks for the contribution. I'd like to understand a bit more about the situations that cause this error. I'm currently investigating an issue with Net::HTTP which I suspect may be the root cause of these errors. Do you have any more information about when these happen and perhaps a stack trace or any logs? |
Here is a partial stack trace (the remainder of the stack trace is inside custom code so it wouldn't help to include): https://gist.github.com/pdrakeweb/f548c5b7cb4a83409a74 |
Yeah, seen this happening too. |
I spent a non-trivial amount of time attempting to reproduce this issue and I can across an issue in how Net::HTTP handles networking errors and automatic retries. The commit above should resolve this issue. |
Interesting. Are you planning to create an upstream (Ruby) bug? |
Yes. I have a write-up with suggestions, possible workarounds. I'm currently going through approval internally so that I can contribute these. There are related issues that affect the payload of a PUT request, stemming from the same issue. Lastly, there is a long-standing Expect 100-continue bug that I will be submitting a patch for. Three Net::HTTP issues in total. |
Nice, thanks for sharing! |
Hey @trevorrowe, did you ever create an issue with Ruby Core? I couldn't find one so I created this one. Let me know if you created one previously so I can remove the dup. Otherwise, feel free to contribute if there's anything you want to add or disagree with. I also made a GitHub PR here: ruby/ruby#1019 For now, we've also gone the way of clearing |
@tdg5 If I recall correctly, the documentation on submitting issues indicated that I could do so via the issue tracker or via GitHub. I opted to go the GitHub route so that I could submit with suggested code-changes. It did not seem to have received any attention and then it fell off my radar. I'll go ahead an ping those issues and if I don't get any response I'll open issues on the Ruby issue tracker. |
Oh duh, yeah I didn't even think to check GitHub. I found ruby/ruby#951, thanks! |
No description provided.