New RocketChat API changes break RocketChatBot
Closed this issue · 5 comments
tamasgal commented
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 😕
jadolg commented
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 ;)
kaiwasaki commented
It's probably due to too many API requests. I created a PR which shows the real error message which comes from the API.
jadolg commented
merged
lbblitz54 commented
jadolg commented
closed as it was an API limitation issue