-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi,
I have some problem when using your facebook_chat gem. Do you have any idea how to fix this?
When trying to create FacebookChat::Client instance, I get a message "internal-server-error".
This does not happen always. It seems to be happening when in internet connection is not good.
Here is my code(partial):
# Returns FacebookChat instance
# @return [FacebookChat::Client]
def chat_api
self.access_token.try { |t| t.access_token.try { |u| FacebookChat::Client.new(u) } }
end
error message:
--------------------------
Overview
--------------------------
POST
RuntimeError
internal-server-error
--------------------------
Backtrace
--------------------------
/apps/whoswhoplus/bundle/ruby/2.1.0/gems/facebook_chat-0.0.1/lib/facebook_chat/x_facebook_platform.rb:47:in auth' /apps/whoswhoplus/bundle/ruby/2.1.0/gems/xmpp4r-0.5.6/lib/xmpp4r/client.rb:176:inauth_sasl'
/apps/whoswhoplus/bundle/ruby/2.1.0/gems/facebook_chat-0.0.1/lib/facebook_chat/client.rb:8:in initialize' /apps/whoswhoplus/production/app/models/profile.rb:251:innew'
/apps/whoswhoplus/production/app/models/profile.rb:251:in block (2 levels) in chat_api' /apps/whoswhoplus/bundle/ruby/2.1.0/gems/activesupport-4.0.8/lib/active_support/core_ext/object/try.rb:43:intry'
/apps/whoswhoplus/production/app/models/profile.rb:251:in block in chat_api' /apps/whoswhoplus/bundle/ruby/2.1.0/gems/activesupport-4.0.8/lib/active_support/core_ext/object/try.rb:43:intry'
/apps/whoswhoplus/production/app/models/profile.rb:251:in `chat_api'
...
--------------------------
I can't figure out what kind of error it is because it gives me only 'internal error'
Looking forward to hearing any work around or fix on this matter. Thanks.