Skip to content
This repository

NoMethodError: undefined method `query_values' #33

Closed
bolom opened this Issue April 25, 2012 · 15 comments

10 participants

Bolo Michelin Jonathan Heaton Eren Atbas Takayuki Matsubara Nathan Manousos Luke Holder Sam Vermette Chris Waters Hector Garcia Chirag Davé
Bolo Michelin
bolom commented April 25, 2012

Hello

I trying to use the sample application from here

https://github.com/Instagram/instagram-ruby-gem

Howeger i have always same issue.

NoMethodError - undefined method query_values' for #<URI::HTTPS:0x104376518>:
/Library/Ruby/Gems/1.8/gems/instagram-0.8.3/lib/faraday/oauth2.rb:10:in
call'
/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?

tks

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 April 27, 2012
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 April 28, 2012
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
trafnar commented May 06, 2012

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 => 'https://github.com/<username>/instagram-ruby-gem'
Hector Garcia
kirai commented June 09, 2012

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://github.com/lukeholder/omniauth-instagram"
gem 'instagram', :git => "https://github.com/joshuaknox/instagram-ruby-gem.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 April 03, 2014
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.