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
Automatically retry calls on 429 rate limiting #168
Comments
Follow up from #167 (comment) Thanks @dblock . Now I can't deploy my bot on AWS EC2 instance as the network there is so fast. Is there any work-around and/or quick patch? Thanks a lot. |
Logs
|
Your problem looks different @kyanh-huynh, you have 3 |
Thanks @dblock. I put the bot block inside an EventMachine. The idea comes from your comment slack-ruby/slack-ruby-bot#49 (comment)
|
It's really fun now 1/ When I first deployed my bot on Ec2 machine, the logs were the same as above. Noted the line Any ideas? ** Update: ** It seems the problem happens randomly. There must be something wrong with Ruby gems on my Bot server. Let me check :( |
I would 1) switch to Celluloid 2) put a begin/rescue around |
Hi @dblock , Thanks for your support. After some random tests, I can come to a final solution: I have some long running task, and on my laptop it seems that 1/ is the only working option. If you think the case is interesting, please let me know I can give more debug messages. I think there is some difference between two servers, but I'm not sure. (I used Bundle/Gemfile.lock) |
Followup from #167
The text was updated successfully, but these errors were encountered: