Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


NoMethodError: undefined method `query_values' #33

bolom opened this Issue · 15 comments

10 participants

Bolo Michelin Eren Atbas Takayuki Matsubara Nathan Manousos Luke Holder Sam Vermette Chris Waters Hector Garcia Chirag Davé Jonathan Heaton
Bolo Michelin


I trying to use the sample application from here

Howeger i have always same issue.

NoMethodError - undefined method query_values' for #<URI::HTTPS:0x104376518>:
/Library/Ruby/Gems/1.8/gems/faraday-0.8.0/lib/faraday/connection.rb:226:in `run_request'

Line 10

    env[:url].query_values = {} if env[:url].query_values.nil?


Eren Atbas

Yeah i had the same problem.

Takayuki Matsubara

This problem is caused faraday version.
It seems faraday behavior was changed after version "0.8.0".
Please try to use faraday version "0.7.6".

Eren Atbas

Yeah It worked thankyou :)

Bolo Michelin bolom closed this
Nathan Manousos

Should the required version of Faraday be changed for the Gemfile to reflect this?

Luke Holder

Also getting this error.

Nathan Manousos

I can't downgrade to 0.7.6 because of other gem dependencies. I will try to make this gem support 0.8 but it may be over my head :)

Bolo Michelin bolom reopened this
Sam Vermette

I also encountered this issue and fixed it by adding gem 'faraday', '0.7.6' to my Gemfile. Still, this shouldn't be necessary to get the gem working.

Luke Holder

also fixed by adding gem 'faraday', '0.7.6' to my gemfile before the instagram gem - but shouldn't have to in the future amiright?

Chris Waters

I get the same (I think) error

NoMethodError at /oauth/callback
undefined method `query_values' for #<URI::HTTPS:0x007fd1aa3bf848>

    file: oauth2.rb
    location: call
    line: 28

I'm fairly new to all this, so not sure where (in what Gemfile?) I should put

gem 'faraday', '0.7.6'

It'd be great if somebody could point me in the right direction.

Nathan Manousos

Check out this issue #34

I'm using rewritten's changes. You can use his version of the gem, or create your own using:

gem 'instagram', :git => '<username>/instagram-ruby-gem'
Hector Garcia

I'm having the same problem with instagram (0.8.4)

NoMethodError - undefined method `query_values' for #URI::HTTPS:0x007fdf9956a308:

Luke Holder

still an issue. please fix. also need to fix the rubygems version, and not force people to use github as source.

Chirag Davé

This is kind of a mess. I'm using instagram 0.8.4, and I'm unable to use faraday 0.7.6 because of the oauth2 gem.

Luke Holder

@chiragrules yeah it is.

I am having to use hotfix forks to get around bugs in every gem.

gem 'omniauth-instagram', :git => "git://"
gem 'instagram', :git => ""
Chirag Davé

@lukeholder hey, that worked like a charm! I really appreciate it :)

Haven't had the chance to check out the new gem yet.

Jonathan Heaton heatonjb closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.