Problems in connecting Rasa with RocketChat

Hello guys!

I’m facing some troubles in the connection between Rasa and RocketChat. The conversation goes well until some random points in which Rasa sends the answers back (I can see that by debugging) but Rocket doesn’t show it. When I try to input again the message in chat, then it returns me the exception below:

Does anyone have any idea what this problem might be?


Mhm, are you maybe hitting some API limits of RocketChat?

1 Like

Yes, it turns out that it was actually about some RocketChat’s API Limits. By using WireShark, I could check the traffic of information between Rasa and RocketChat and then I found a little more information than the logs about what the problem really was:

"Error, too many requests. Please slow down. You must wait 2 seconds before trying this endpoint again. [error-too-many-requests]".

Rasa was trying to send the message back, but sometimes it was faster than the default speed rate limit of Rocket’s API.

I’ve found here the tutorial to configure Rocket’s Rate Limits and the problem was finally solved by this configuration.