Skip to content

Conversation

@chrisrbnelson
Copy link
Member

Faraday, when backed by Net::HTTP, doesn't properly set the response encoding based on the server headers. This can lead to errors when trying to serialize that data to JSON further down the stack.

The faraday-encoding gem fixes this.

activesupport
builder
dry-types
dry-types (~> 0.15.0)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of gems upgraded as a result of my bundle install, and dry-types is using an older syntax so needs to be locked to this version.

The tests otherwise pass fine with the other upgrades.

@chrisrbnelson chrisrbnelson marked this pull request as ready for review August 5, 2021 05:39
@chrisrbnelson chrisrbnelson requested a review from a team as a code owner August 5, 2021 05:39
Copy link

@walhalign walhalign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@chrisrbnelson chrisrbnelson merged commit 3826796 into master Aug 5, 2021
@chrisrbnelson chrisrbnelson deleted the fix-response-encoding branch August 5, 2021 23:27
lankz pushed a commit that referenced this pull request Jun 10, 2025
* Fix response encoding

* rubocop

Co-authored-by: Chris Nelson <git@chrisnelson.io>
lankz pushed a commit that referenced this pull request Jun 10, 2025
* Fix response encoding

* rubocop

Co-authored-by: Chris Nelson <git@chrisnelson.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants