Project

General

Profile

Actions

バグ #566

closed

twitter に http で oauth 認証をしにいくと 301 が返ってぴゃあ

Added by Taiki ONO over 9 years ago. Updated over 9 years ago.

Status:
終了
Priority:
通常
Target version:
プラグイン名:
ブランチ:
クラッシュする:

Description

環境が Mac だったのもあるのかもしれません。master, develop で同じ現象が起きました。

環境:
OSX 10.7.5
Ruby 1.9.3-p194
gtk 1.2.1
oauth 0.4.7

簡易 fix:
develp ブランチとの差分 https://github.com/taiki45/mikutter/compare/develop...change-oauth-url

バックトレース:

[taiki:~/work/mikutter] $ be ruby mikutter.rb
"/Users/taiki/work/mikutter/core/plugin/gtk/toolbar_generator" 
/Users/taiki/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/net/http.rb:2632:in `error!': 301 "Moved Permanently" (Net::HTTPRetriableError)
        from /Users/taiki/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/oauth-0.4.7/lib/oauth/consumer.rb:213:in `token_request'
        from /Users/taiki/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/oauth-0.4.7/lib/oauth/consumer.rb:136:in `get_request_token'
        from /Users/taiki/work/mikutter/core/lib/mikutwitter/connect.rb:37:in `request_oauth_token'
        from /Users/taiki/work/mikutter/core/plugin/change_account.rb:71:in `main'
        from /Users/taiki/work/mikutter/core/plugin/change_account.rb:28:in `_popup'
        from /Users/taiki/work/mikutter/core/plugin/change_account.rb:7:in `block in popup'
        from /Users/taiki/work/mikutter/core/plugin/gtk/delayer.rb:14:in `event_lock'
        from /Users/taiki/work/mikutter/core/plugin/change_account.rb:7:in `popup'
        from /Users/taiki/work/mikutter/core/lib/mikutwitter/authentication_failed_action.rb:44:in `call'
        from /Users/taiki/work/mikutter/core/lib/mikutwitter/authentication_failed_action.rb:44:in `block in authentication_failed_action'
        from <internal:prelude>:10:in `synchronize'
        from /Users/taiki/work/mikutter/core/lib/mikutwitter/authentication_failed_action.rb:42:in `authentication_failed_action'
        from /Users/taiki/work/mikutter/core/service.rb:50:in `initialize'
        from /Users/taiki/work/mikutter/core/service.rb:23:in `new'
        from /Users/taiki/work/mikutter/core/service.rb:23:in `services_refresh'
        from /Users/taiki/work/mikutter/core/service.rb:28:in `all'
        from /Users/taiki/work/mikutter/core/service.rb:33:in `primary'
        from mikutter.rb:37:in `<main>'

Actions

Also available in: Atom PDF