[Facebooker-talk] fb:dialog-content

Mike Mangino mmangino at elevatedrails.com
Wed Aug 13 09:06:11 EDT 2008


Are you using a very recent Facebooker? We should get better error  
messages now. Could you also put a debug statement in parser.rb like:

     def self.parse(method, data)
       puts data.body
       Errors.process(data)
       parser = Parser::PARSERS[method]
       parser.process(
         data
       )
     end


That will show us the actual error that is being sent.

Mike

On Aug 13, 2008, at 8:21 AM, dara wrote:

> This is what I get from the log (was actually coming out anyway but  
> i was missing it off screen):
>
> Facebooker::Session::UnknownError ():
>     /vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in  
> `process'
>     /vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'
>     /vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post'
>     /vendor/plugins/facebooker/lib/facebooker/session.rb:454:in `post'
>     /vendor/plugins/facebooker/lib/facebooker/adapters/ 
> bebo_adapter.rb:41:in `set_profile_fbml'
>     /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb: 
> 277:in `send_message'
>     /vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb: 
> 374:in `method_missing'
>     /app/controllers/welcome_controller.rb:7:in `index'
> cheers
>
> Mike Mangino wrote:
>>
>> Interesting. Somehow the code is trying to render the error page  
>> inside a publisher. That will likely cause some problems. Can you  
>> rescue the exception in your publisher and get some additional  
>> detail about what is going wrong?
>>
>> Mike
>>
>> On Aug 13, 2008, at 7:28 AM, dara wrote:
>>
>>> Hi,
>>>
>>> I'm seeing the following error when trying to use an fb:dialog- 
>>> content within an fb:dialog tag.
>>> Have any of you hit and solved this already ?
>>>
>>> ActionView::TemplateError (private method `gsub' called for  
>>> {}:Hash) on line #7 of /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/ 
>>> actionpack-2.1.0/lib/action_controller/templates/rescues/ 
>>> diagnostics.erb:
>>> 4:     in <%=h request.parameters['controller'].humanize  
>>> %>Controller<% if request.parameters['action'] %>#<%=h  
>>> request.parameters['action'] %><% end %>
>>> 5:   <% end %>
>>> 6: </h1>
>>> 7: <pre><%=h @exception.clean_message %></pre>
>>> 8:
>>> 9: <%= render_file(@rescues_path + "/_trace.erb", false) %>
>>> 10:
>>>
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/ 
>>> lib/active_support/core_ext/pathname/clean_within.rb:7:in  
>>> `clean_within'
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activesupport-2.1.0/ 
>>> lib/active_support/core_ext/exception.rb:11:in `clean_message'
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
>>> action_controller/templates/rescues/diagnostics.erb:7:in  
>>> ` 
>>> _run_erb_47home47dara47apps47ruby45146846647lib47ruby47gems47146847gems47actionpack45246146047lib47action_controller47templates47rescues47diagnostics46erb 
>>> '
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
>>> action_view/base.rb:338:in `send'
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
>>> action_view/base.rb:338:in `execute'
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
>>> action_view/template_handlers/compilable.rb:29:in `send'
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
>>> action_view/template_handlers/compilable.rb:29:in `render'
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
>>> action_view/template.rb:35:in `render'
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
>>> action_view/template.rb:22:in `render_template'
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
>>> action_view/base.rb:245:in `render_file'
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
>>> action_controller/rescue.rb:181:in `rescue_action_locally'
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
>>> action_controller/rescue.rb:125:in `rescue_action'
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
>>> action_controller/rescue.rb:203:in `perform_action_without_caching'
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/ 
>>> action_controller/caching/sql_cache.rb:13:in `perform_action'
>>>     /apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/ 
>>> active_record/connection_adapters/abstract/query_cache.rb:33:in  
>>> `cache'
>>> ...
>>>
>>>
>>>
>>> This is within the profile, sent through a publisher, and in the  
>>> context of the bebo social networking service.
>>>
>>>
>>> _______________________________________________
>>> Facebooker-talk mailing list
>>> Facebooker-talk at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/facebooker-talk
>>
>> -- 
>> Mike Mangino
>> http://www.elevatedrails.com
>>
>>
>

--
Mike Mangino
http://www.elevatedrails.com





More information about the Facebooker-talk mailing list