A new user recently attempted to use my app and generated the following
error:
A Facebooker::Session::MissingOrInvalidParameter occurred in home#index:
Invalid parameter
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/parser.rb:487:in
`process''
This appears to have happened when facebooker attempted to parse the
response of facebook.auth.getSession.
I have never seen anything fail in this area, so I''m eager to write
this off
as a temporary facebook quirk, but I don''t see anyone else reporting
problems on the developer forums. Is anyone else seeing this problem?
The failure was in this method:
def self.process(data)
response_element = element(''error_response'', data)
rescue nil
if response_element
hash = hashinate(response_element)
exception = EXCEPTIONS[Integer(hash[''error_code''])] ||
StandardError
raise exception.new(hash[''error_msg'']) #### line 487
end
end
Here are the request parameters and the backtrace:
-------------------------------
Request:
-------------------------------
* URL : http://**.
inigral.com/?auth_token=34a2311df88b8a1f3a847064e7450407&installed=1
* IP address: 69.63.176.230
* Parameters: {"format"=>"fbml",
"fb_sig_time"=>"1229116842.827",
"fb_sig"=>"b720e5366299ba47e676874d4be4457c",
"fb_sig_in_new_facebook"=>"1",
"_method"=>"GET",
"fb_sig_locale"=>"en_US",
"installed"=>"1",
"action"=>"index",
"fb_sig_position_fix"=>"1",
"fb_sig_in_canvas"=>"1",
"fb_sig_request_method"=>"GET",
"auth_token"=>"34a2311df88b8a1f3a847064e7450407",
"controller"=>"home",
"fb_sig_added"=>"0",
"fb_sig_api_key"=>"4ea2871be8fb71d66673d3692d94c6bc"}
-------------------------------
Backtrace:
-------------------------------
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/parser.rb:487:in
`process''
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in
`parse_without_logging''
[RAILS_ROOT]/lib/facebooker_extensions.rb:18:in `parse''
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/service.rb:14:in
`post_without_api_logging''
[RAILS_ROOT]/lib/facebooker_extensions.rb:7:in `post''
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/session.rb:485:in
`post_without_logging''
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/session.rb:496:in
`post''
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/logging.rb:17:in
`log_fb_api''
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/benchmark.rb:8:in
`realtime''
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/logging.rb:17:in
`log_fb_api''
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/session.rb:495:in
`post''
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/session.rb:155:in
`secure!''
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:72:in
`secure_with_token!''
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/rails/controller.rb:27:in
`set_facebook_session''
[RAILS_ROOT]/vendor/plugins/facebooker/lib/facebooker/rails
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/facebooker-talk/attachments/20081212/0a3002be/attachment.html>