Does the delay occur in both rasa shell and rasa run?
Yes, in both! On the UI side it feels more than 2 sec. But the timestamp of rasa run shows the equal lag of 2 seconds, as in rasa shell.
@akelad Did you find any solution to this or any reason perhaps, as to why the call is getting delayed??
And btw the call is getting delayed only when action server is called from rasa, I tested calling action server from Postman and there wasnt any noticable lag.
Please reply!
Run the following command to monitor the rest call to the action server. I’d like to know if the 2 second delay is before the rasa POST or after.
sudo tcpdump -A -t -s 0 'tcp port 5055 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'
@stephens Hey Greg! Can you give me the command for Windows??
I was just wondering , the issue that i am suffering with…does it has anything to do with this???-
In my cmd, the debug shows-
2020-01-27 12:24:29 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 4 events.
4 events in tracker are created after first message sent by user. And
2020-01-27 12:32:46 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 13 events.
And 13 events in the tracker after the second message . Both the first and second messages are same.
The tracker would not have an effect on this issue. I can’t answer your question about tcpdump
on Windows. You should google tcpdump for windows or tcp traffic monitoring.
Hi, did this issue get resolved ?
I’m currently facing the same problem. I run rasa 1.8 and the action server on the same machine, and I’m experiencing a 2 seconds delay even for a “hello world” custom action on the default beginner bot.
When looking at the logs of the action server, it seems that it serves my request almost instantaneously, so the problem seems to be with the call
@vincenterb is this just running rasa shell
?
Unfortunately no, I also tried using rasa run
and using an agent in a python script but the problem still occurs.
what do you mean? I’m asking if you’re encountering this experience with rasa shell
?
I’m encountering this experience with rasa shell, but I’m also experiencing it with rasa run or the agent
Could you show me the logs of both the shell and the action server?
Here are the logs from the shell :
And here are the logs from the action server :
Since yesterday I upgraded rasa so I’m now running rasa 1.9.1 on Windows 10 pro
Hello, I’ve found that changing the action server endpoints from http://localhost:5055/webhook
to http://127.0.0.1:5055/webhook
makes the delay disappear on Windows machine, as mentioned in this thread
Thank you very much this solved my issue, my requests went from 2 seconds to 15 ms now.
@tomgun132, nice fix!
It seems to be that the cause of this issue is IPv4 vs IPv6, as explained in this related stackoverflow solution on resolution of localhost
by the DNS on Windows.
Your fix is one of the recommended ways to solve this issue.