lostisland / faraday-http Goto Github PK
View Code? Open in Web Editor NEWFaraday Adapter for HTTP.rb
License: MIT License
Faraday Adapter for HTTP.rb
License: MIT License
This Issue is a sign-post issue ๐ฉ about things we need to have done before releasing this as a gem.
This Issue is a shopping list Issue, check off items as they're done.
This adapter still does not support upgrades to Faraday 2.0.
I tried using this gem with Ruby 2.7.1
and I got the following error
#<FrozenError: can't modify frozen String: "">
It seems the issue is the http.rb
version dependency you declare in your gemspec
file.
spec.add_dependency 'http', '~> 3.0'
This issue seems to be fixed on the 4.2.1
version of http.rb
Maybe bumping the dependency version would be enough.
Full Stack trace
".rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/http-3.3.0/lib/http/response/body.rb:52:in `force_encoding'",
".rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/http-3.3.0/lib/http/response/body.rb:52:in `to_s'",
".rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/bundler/gems/faraday-http-80c9bedffbb2/lib/faraday/adapter/http.rb:29:in `perform_request'",
".rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/bundler/gems/faraday-http-80c9bedffbb2/lib/faraday/adapter/http.rb:16:in `call'",
".rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/faraday_middleware-1.0.0/lib/faraday_middleware/response_middleware.rb:36:in `call'",
".rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/faraday_middleware-1.0.0/lib/faraday_middleware/response/follow_redirects.rb:79:in `perform_with_redirection'",
".rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/faraday_middleware-1.0.0/lib/faraday_middleware/response/follow_redirects.rb:67:in `call'",
".rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/faraday-1.0.1/lib/faraday/request/retry.rb:148:in `call'",
".rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/faraday-1.0.1/lib/faraday/request/url_encoded.rb:25:in `call'",
".rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/faraday-1.0.1/lib/faraday/rack_builder.rb:153:in `build_response'",
".rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/faraday-1.0.1/lib/faraday/connection.rb:492:in `run_request'",
".rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/faraday-1.0.1/lib/faraday/connection.rb:198:in `get'",
Thanks
EDIT:
Cloned the repo locally, updated gemspec
dependency of http.rb
to
spec.add_dependency 'http', '~> 4'
specs seems to be passing.
Have not tested further than that though.
The README indicates to install the gem named faraday-http
, but this gem does not exist in the the RubyGems repos. Is this an oversight, or is the gem not ready to be published yet?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.