A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/timbreitkreutz/omniauth-flickr/issues/4 below:

request_phase throwing 'string not matched' · Issue #4 · timbreitkreutz/omniauth-flickr · GitHub

In flickr.rb, calling 'super' in the 'request_phase' is failing at session['oauth'][name.to_s]

def request_phase
        request_token = consumer.get_request_token({:oauth_callback => callback_url}, options.request_params)
        session['oauth'] ||= {}
        session['oauth'][name.to_s] = {'callback_confirmed' => request_token.callback_confirmed?, 'request_token' => request_token.token, 'request_secret' => request_token.secret}

The error is 'string not matched' with a stack trace of

org/jruby/RubyString.java:3848:in `[]='
omniauth-oauth (1.0.1) lib/omniauth/strategies/oauth.rb:31:in `request_phase'
omniauth-flickr (0.0.11) lib/omniauth/strategies/flickr.rb:73:in `request_phase'
omniauth (1.1.4) lib/omniauth/strategy.rb:214:in `request_call'

In flickr.rb, if you set session['oauth'] = {} before calling super, it appears to fix it. Not sure if this is the correct solution, but something appears broken.

This is being run in jRuby with the following versions in my Gemfile.lock

    omniauth (1.1.4)
      hashie (>= 1.2, < 3)
      rack
    omniauth-facebook (1.4.1)
      omniauth-oauth2 (~> 1.1.0)
    omniauth-flickr (0.0.11)
      omniauth-oauth (~> 1.0)
    omniauth-instagram (1.0.0)
      omniauth (~> 1.0)
      omniauth-oauth2 (~> 1.0)
    omniauth-oauth (1.0.1)
      oauth
      omniauth (~> 1.0)
    omniauth-oauth2 (1.1.1)
      oauth2 (~> 0.8.0)
      omniauth (~> 1.0)
    omniauth-twitter (0.0.14)
      multi_json (~> 1.3)
      omniauth-oauth (~> 1.0)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4