{"issue":{"title":"使用过程中遇到的问题","created_at":"2011-12-23T01:50:08Z","milestone":null,"user":{"id":175945,"login":"kingze","url":"https://api.github.com/users/kingze","avatar_url":"https://secure.gravatar.com/avatar/632b76b946e592f6594cc771e665dbb1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"632b76b946e592f6594cc771e665dbb1"},"labels":[],"updated_at":"2011-12-23T05:02:50Z","state":"open","id":2643998,"closed_at":null,"html_url":"https://github.com/hooopo/oauth_china/issues/8","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"刚刚使用时遇到两个问题，，，\r\n\r\n1）Sohu微博出现以下问题：\r\n\r\n  NoMethodError in MemberController#syncs_new\r\n\r\nundefined method `gsub' for nil:NilClass\r\n\r\n\r\n  activesupport (3.1.1) lib/active_support/whiny_nil.rb:48:in `method_missing'\r\n/opt/ruby/lib/ruby/1.9.1/cgi/util.rb:7:in `escape'\r\noauth (0.4.5) lib/oauth/tokens/request_token.rb:28:in `block in build_authorize_url'\r\noauth (0.4.5) lib/oauth/tokens/request_token.rb:28:in `each'\r\noauth (0.4.5) lib/oauth/tokens/request_token.rb:28:in `map'\r\noauth (0.4.5) lib/oauth/tokens/request_token.rb:28:in `build_authorize_url'\r\noauth (0.4.5) lib/oauth/tokens/request_token.rb:9:in `authorize_url'\r\noauth_china (0.4.0) lib/oauth_china.rb:72:in `authorize_url'\r\n\r\n\r\n2）网易微博出下以下问题：\r\n\r\n\r\nOAuth::Problem in MemberController#syncs_new\r\n\r\nconsumer not found\r\n\r\n\r\n\r\noauth (0.4.5) lib/oauth/consumer.rb:181:in `request'\r\noauth (0.4.5) lib/oauth/consumer.rb:197:in `token_request'\r\noauth (0.4.5) lib/oauth/consumer.rb:139:in `get_request_token'\r\noauth_china (0.4.0) lib/oauth_china.rb:28:in `initialize'\r\noauth_china (0.4.0) lib/oauth_china/strategies/netease.rb:14:in `initialize'\r\n\r\n\r\n请问如何解决，谢谢！","number":8,"url":"https://api.github.com/repos/hooopo/oauth_china/issues/8","comments":1,"assignee":null},"comment":{"created_at":"2011-12-23T05:02:50Z","user":{"id":63877,"login":"hooopo","url":"https://api.github.com/users/hooopo","avatar_url":"https://secure.gravatar.com/avatar/e9ed4664dfd7ea664ccc5813de4d1fd7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e9ed4664dfd7ea664ccc5813de4d1fd7"},"updated_at":"2011-12-23T05:02:50Z","id":3258116,"body":"我重现不出这样的问题呀 你可以自己先调试一下，看看哪里的问题........\r\n\r\n在 2011年12月23日 上午9:50，kingze <\r\nreply@reply.github.com\r\n>写道：\r\n\r\n> 刚刚使用时遇到两个问题，，，\r\n>\r\n> 1）Sohu微博出现以下问题：\r\n>\r\n>  NoMethodError in MemberController#syncs_new\r\n>\r\n> undefined method `gsub' for nil:NilClass\r\n>\r\n>\r\n>  activesupport (3.1.1) lib/active_support/whiny_nil.rb:48:in\r\n> `method_missing'\r\n> /opt/ruby/lib/ruby/1.9.1/cgi/util.rb:7:in `escape'\r\n> oauth (0.4.5) lib/oauth/tokens/request_token.rb:28:in `block in\r\n> build_authorize_url'\r\n> oauth (0.4.5) lib/oauth/tokens/request_token.rb:28:in `each'\r\n> oauth (0.4.5) lib/oauth/tokens/request_token.rb:28:in `map'\r\n> oauth (0.4.5) lib/oauth/tokens/request_token.rb:28:in `build_authorize_url'\r\n> oauth (0.4.5) lib/oauth/tokens/request_token.rb:9:in `authorize_url'\r\n> oauth_china (0.4.0) lib/oauth_china.rb:72:in `authorize_url'\r\n>\r\n>\r\n> 2）网易微博出下以下问题：\r\n>\r\n>\r\n> OAuth::Problem in MemberController#syncs_new\r\n>\r\n> consumer not found\r\n>\r\n>\r\n>\r\n> oauth (0.4.5) lib/oauth/consumer.rb:181:in `request'\r\n> oauth (0.4.5) lib/oauth/consumer.rb:197:in `token_request'\r\n> oauth (0.4.5) lib/oauth/consumer.rb:139:in `get_request_token'\r\n> oauth_china (0.4.0) lib/oauth_china.rb:28:in `initialize'\r\n> oauth_china (0.4.0) lib/oauth_china/strategies/netease.rb:14:in\r\n> `initialize'\r\n>\r\n>\r\n> 请问如何解决，谢谢！\r\n>\r\n> ---\r\n> Reply to this email directly or view it on GitHub:\r\n> https://github.com/hooopo/oauth_china/issues/8\r\n>","url":"https://api.github.com/repos/hooopo/oauth_china/issues/comments/3258116"},"action":"created"}