Skip to content
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

WARNING: Unexpected middleware set after the adapter. This won't be supported from Faraday 1.0. #4

Closed
ttanimichi opened this issue Sep 11, 2017 · 0 comments · Fixed by #5

Comments

@ttanimichi
Copy link

I have got a warning.

$ ruby /home/ttanimichi/.RubyMine2017.2/config/scratches/scratch.rb
WARNING: Unexpected middleware set after the adapter. This won't be supported from Faraday 1.0.
/home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/2.4.0/net/http.rb:906:in `rescue in block in connect': Failed to open TCP connection to webservices.amazon.:80 (getaddrinfo: Name or service not known) (Faraday::ConnectionFailed)
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/2.4.0/net/http.rb:903:in `block in connect'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/2.4.0/timeout.rb:103:in `timeout'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/2.4.0/net/http.rb:902:in `connect'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/2.4.0/net/http.rb:887:in `do_start'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/2.4.0/net/http.rb:876:in `start'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/2.4.0/net/http.rb:1407:in `request'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/2.4.0/net/http.rb:1165:in `get'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/faraday-0.13.1/lib/faraday/adapter/net_http.rb:78:in `perform_request'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/faraday-0.13.1/lib/faraday/adapter/net_http.rb:38:in `block in call'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/faraday-0.13.1/lib/faraday/adapter/net_http.rb:85:in `with_net_http_connection'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/faraday-0.13.1/lib/faraday/adapter/net_http.rb:33:in `call'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/faraday-0.13.1/lib/faraday/rack_builder.rb:141:in `build_response'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/faraday-0.13.1/lib/faraday/connection.rb:387:in `run_request'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/faraday-0.13.1/lib/faraday/connection.rb:137:in `get'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rapa-0.5.5/lib/rapa/client.rb:137:in `send_request'
	from /home/ttanimichi/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/rapa-0.5.5/lib/rapa/client.rb:41:in `list_items'
	from /home/ttanimichi/.RubyMine2017.2/config/scratches/scratch.rb:7:in `<main>'
$ cat /home/ttanimichi/.RubyMine2017.2/config/scratches/scratch.rb
require "rapa"

Rapa::Client.new(
    access_key_id: "",
    associate_tag: "",
    secret_access_key: "",
).list_items(
    item_ids: [""],
    domain: "",
    response_groups: [""],
)
$ gem list rapa

*** LOCAL GEMS ***

rapa (0.5.5)
$ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"
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 a pull request may close this issue.

1 participant