jadolg/RocketChatBot

New RocketChat API changes break RocketChatBot

Closed this issue · 5 comments

RocketChat recently changed their API (at least it seems so, by looking at the suddenly occuring error messages) and the bot is not working anymore:

KeyError('messages',)
KeyError('messages',)
KeyError('messages',)
KeyError('messages',)
KeyError('messages',)
KeyError('messages',)
KeyError('messages',)
KeyError('messages',)
Traceback (most recent call last):
  File "scripts/chatbot.py", line 160, in <module>
    main()
  File "scripts/chatbot.py", line 156, in main
    run()
  File "scripts/chatbot.py", line 47, in run
    bot.run()
  File "/home/off1user/.pyenv/versions/3.6.1/lib/python3.6/site-packages/RocketChatBot.py", line 135, in run
    for im in self.api.im_list().json().get('ims'):

Are there any plans to update this package? I am not sure I'll find time to jump in with a PR 😕

I'm currently working on updating the API wrapper for the new versions.
After the update, I'll take a look.
If you have the time, PRs are appreciated ;)

It's probably due to too many API requests. I created a PR which shows the real error message which comes from the API.

merged

Yes turning off the rate limiter in RC settings "fixes" this issue
image

closed as it was an API limitation issue