Skip to content

Internal-server-error when auth_sasl #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tomoima525 opened this issue Aug 20, 2014 · 1 comment
Open

Internal-server-error when auth_sasl #1

tomoima525 opened this issue Aug 20, 2014 · 1 comment

Comments

@tomoima525
Copy link

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.

@tkengo
Copy link
Owner

tkengo commented Aug 20, 2014

Thank you for reporting the problem. I'll try to investigate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants