Closed marlonmarcos21 closed 5 years ago
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!
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: