<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Not very, a couple of weeks old I believe.<br>
I updated earlier this week, but cracks started to show on the
application (in set_profile_fbml_with_bebo_adapter as I recall, due to
a nil session) so I chose to revert for the current time.<br>
<br>
Below is the response from the debug statement you suggest. I have cut
down the markup.<br>
The error goes away if I remove the <fb:dialog-content> tag.<br>
<br>
I've also just found that the error also goes away again if I <i>add</i>
the
<fb:dialog-title> tag, which i was missing, and so this is
perhaps what
bebo is complaining about below.<br>
<blockquote><tt><?xml version="1.0" encoding="UTF-8"?></tt><br>
<tt><error_response></tt><br>
<tt> <error_code>1</error_code></tt><br>
<tt> <error_msg></error_msg></tt><br>
<tt> <request_args list="true"></tt><br>
<tt> <arg></tt><br>
<tt> <key>uid</key></tt><br>
<tt> <value>xxxxxxxxx</value></tt><br>
<tt> </arg></tt><br>
<tt> <arg></tt><br>
<tt> <key>v</key></tt><br>
<tt> <value>1.0</value></tt><br>
<tt> </arg></tt><br>
<tt> <arg></tt><br>
<tt> <key>markup</key></tt><br>
<tt> <value></tt><br>
<tt>---snip</tt><br>
<tt> </tt><br>
<tt> &lt;fb:dialog id=&quot;diame&quot;&gt;</tt><br>
<tt> &lt;fb:dialog-content
id=&quot;diamecontent&quot;&gt;</tt><br>
<tt> This is the dialog content</tt><br>
<tt> &lt;/fb:dialog-content&gt;</tt><br>
<tt> &lt;/fb:dialog&gt;</tt><br>
<tt> </tt><br>
<br>
<tt>---snip</tt><br>
<tt> </tt><br>
<tt></value></tt><br>
<tt> </arg></tt><br>
<tt> <arg></tt><br>
<tt> <key>api_key</key></tt><br>
<tt> <value>yyyyyyyyyyyy</value></tt><br>
<tt> </arg></tt><br>
<tt> <arg></tt><br>
<tt> <key>method</key></tt><br>
<tt> <value>facebook.profile.setFBML</value></tt><br>
<tt> </arg></tt><br>
<tt> <arg></tt><br>
<tt> <key>call_id</key></tt><br>
<tt> <value>1234567890.12345</value></tt><br>
<tt> </arg></tt><br>
<tt> <arg></tt><br>
<tt> <key>session_key</key></tt><br>
<tt> <value>zzzzzzzzzzzzz</value></tt><br>
<tt> </arg></tt><br>
<tt> <arg></tt><br>
<tt> <key>sig</key></tt><br>
<tt> <value>xxxxxyyyyyzzzzzzz</value></tt><br>
<tt> </arg></tt><br>
<tt> </request_args></tt><br>
<tt></error_response></tt><br>
</blockquote>
<br>
<br>
Mike Mangino wrote:
<blockquote
cite="mid:87ED6827-ED36-4B65-8385-345D8F673401@elevatedrails.com"
type="cite">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:
<br>
<br>
def self.parse(method, data)
<br>
puts data.body
<br>
Errors.process(data)
<br>
parser = Parser::PARSERS[method]
<br>
parser.process(
<br>
data
<br>
)
<br>
end
<br>
<br>
<br>
That will show us the actual error that is being sent.
<br>
<br>
Mike
<br>
<br>
On Aug 13, 2008, at 8:21 AM, dara wrote:
<br>
<br>
<blockquote type="cite">This is what I get from the log (was actually
coming out anyway but i was missing it off screen):
<br>
<br>
Facebooker::Session::UnknownError ():
<br>
/vendor/plugins/facebooker/lib/facebooker/parser.rb:425:in
`process'
<br>
/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'
<br>
/vendor/plugins/facebooker/lib/facebooker/service.rb:13:in `post'
<br>
/vendor/plugins/facebooker/lib/facebooker/session.rb:454:in `post'
<br>
/vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:41:in
`set_profile_fbml'
<br>
/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:277:in
`send_message'
<br>
/vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:374:in
`method_missing'
<br>
/app/controllers/welcome_controller.rb:7:in `index'
<br>
cheers
<br>
<br>
Mike Mangino wrote:
<br>
<blockquote type="cite"><br>
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?
<br>
<br>
Mike
<br>
<br>
On Aug 13, 2008, at 7:28 AM, dara wrote:
<br>
<br>
<blockquote type="cite">Hi,
<br>
<br>
I'm seeing the following error when trying to use an fb:dialog-content
within an fb:dialog tag.
<br>
Have any of you hit and solved this already ?
<br>
<br>
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:
<br>
4: in <%=h request.parameters['controller'].humanize
%>Controller<% if request.parameters['action'] %>#<%=h
request.parameters['action'] %><% end %>
<br>
5: <% end %>
<br>
6: </h1>
<br>
7: <pre><%=h @exception.clean_message %></pre>
<br>
8:
<br>
9: <%= render_file(@rescues_path + "/_trace.erb", false) %>
<br>
10:
<br>
<br>
/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'
<br>
/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'
<br>
/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'
<br>
/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in
`send'
<br>
/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:338:in
`execute'
<br>
/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'
<br>
/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'
<br>
/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:35:in
`render'
<br>
/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/template.rb:22:in
`render_template'
<br>
/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_view/base.rb:245:in
`render_file'
<br>
/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'
<br>
/apps/ruby-1.8.6/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/action_controller/rescue.rb:125:in
`rescue_action'
<br>
/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'
<br>
/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'
<br>
/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'
<br>
...
<br>
<br>
<br>
<br>
This is within the profile, sent through a publisher, and in the
context of the bebo social networking service.
<br>
<br>
<br>
_______________________________________________
<br>
Facebooker-talk mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Facebooker-talk@rubyforge.org">Facebooker-talk@rubyforge.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://rubyforge.org/mailman/listinfo/facebooker-talk">http://rubyforge.org/mailman/listinfo/facebooker-talk</a>
<br>
</blockquote>
<br>
-- <br>
Mike Mangino
<br>
<a class="moz-txt-link-freetext" href="http://www.elevatedrails.com">http://www.elevatedrails.com</a>
<br>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
--
<br>
Mike Mangino
<br>
<a class="moz-txt-link-freetext" href="http://www.elevatedrails.com">http://www.elevatedrails.com</a>
<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>