-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Not working with Ruby 2.6.0 #378
Comments
I had the same problem. Nasty bug. Spend a whole day debugging this. Then I got an email from Ruby Weekly that I believe makes sense of the issue: https://mensfeld.pl/2019/01/exploring-a-critical-netprotocol-issue-in-ruby-2-6-0p0-and-how-it-can-lead-to-a-security-problem/ For me it was some random combination of when unicode characters were present, and the request body was a certain size. I downgraded to ruby 2.5.3. I think we have to wait for a new release of Ruby. Other libraries are likely affected as well, so don't use ruby 2.6.0!! |
Thanks for jumping in @jeffblake! |
This issue is caused by a bug in Ruby 2.6.0 and is fixed in Ruby 2.6.1.The bug that causes this is documented in https://bugs.ruby-lang.org/issues/15468. Running any other version of Ruby makes this problem go away. |
@thinkingserious can you please change the title of this bug to "Not working with Ruby 2.6.0" as it is specific to a single release of Ruby, and not the 2.6.x branch in general? |
Request that the readme be updated. |
Issue Summary
We recently upgraded ruby to 2.6.0 and our api requests to sendgrid started failing giving a non descriptive error:
"{"errors":[{"message":"Bad Request","field":null,"help":null}]}"
Rolling back to earlier version of ruby fixes the problem.
Steps to Reproduce
The following is an example of what we post to sendgrid:
Technical details:
The text was updated successfully, but these errors were encountered: