You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thread.abort_on_exception = false
Thread.report_on_exception = false
SlackRubyBot::Client.logger.level = Logger::DEBUG
Thread.new do
SlackXXXXXbot::Bot.run
rescue => e
STDERR.puts "ERROR: #{e}"
STDERR.puts e.backtrace
raise e
end
run SlackXXXXXbot::Web
I'm not going via a proxy and as far as I can tell I have no network issues (the box lives in a data centre with excellent connectivity).
I'm running the latest version.
My question is, is there a way to detect when this happens and try again?
Also, is there something I can add to my app's healthcheck that tests my connectivity so I can try to reconnect?
The text was updated successfully, but these errors were encountered:
I did that (I just changed the entry in the Gemfile) and it seems to connect every time now.
I just did it 7 times in a row and it connected every time.
Ok, which means we have a real bug with Celluloid in this case. I'll leave this open, if you have time would love it if you could spend some more time debugging/adding log code/try/rescue, maybe we're not seeing an exception after the websocket connection is opened or something of that kind...
dblock
changed the title
My bot only connects 50% of the time
Celluloid only connects 50% of the time
Mar 28, 2019
dblock
changed the title
Celluloid only connects 50% of the time
Bot/Celluloid only connects 50% of the time
Mar 28, 2019
And if you are generous with your time, I would confirm whether this issue exists with EventMachine and with Celluloid on older versions of slack-ruby-client (especially in 0.13.x, 0.12.x).
My bot doesn't seem to connect to Slack around 50% of the time when I start it up.
I get these lines every time...
But I only get this...
around half the time.
Here's some logging output.
Success...
Failure...
My config.ru start up code looks like this...
I'm not going via a proxy and as far as I can tell I have no network issues (the box lives in a data centre with excellent connectivity).
I'm running the latest version.
My question is, is there a way to detect when this happens and try again?
Also, is there something I can add to my app's healthcheck that tests my connectivity so I can try to reconnect?
The text was updated successfully, but these errors were encountered: