I always got the error messages while I use rasa interactive, but it’s fine when I run rasa in webchat UI, could you have some advice to solve it? Thanks.
[2019-06-25 23:56:44 +0800] [35484] [ERROR] Exception occurred while handling uri: ‘http://127.0.0.1:5005/socket.io/?EIO=3&transport=polling&t=MkFMele’
Traceback (most recent call last):
File “C:\ProgramData\Anaconda3\envs\rasa_new\lib\site-packages\sanic\app.py”, line 893, in handle_request
handler, args, kwargs, uri = self.router.get(request)
File “C:\ProgramData\Anaconda3\envs\rasa_new\lib\site-packages\sanic\router.py”, line 407, in get
return self._get(request.path, request.method, “”)
File “C:\ProgramData\Anaconda3\envs\rasa_new\lib\site-packages\sanic\router.py”, line 469, in _get
raise NotFound(“Requested URL {} not found”.format(url))
sanic.exceptions.NotFound: Requested URL /socket.io/ not found
rasa interactive -m models/20190801-111626.tar.gz --endpoints endpoints.yml
and get the following error:
2019-08-01 11:45:35 INFO rasa.nlu.components - Added ‘SpacyNLP’ to component cache. Key ‘SpacyNLP-de’.
Bot loaded. Visualisation at http://localhost:5006/visualization.html.
Type a message and press enter (press ‘Ctr-c’ to exit).
[2019-08-01 11:45:37 +0200] [23200] [ERROR] Exception occurred while handling uri: ‘http://localhost:5005/socket.io/?EIO=3&transport=polling&t=MnCaWoQ’
Traceback (most recent call last):
File “c:\users\appdata\local\continuum\anaconda3\lib\site-packages\sanic\app.py”, line 893, in handle_request
handler, args, kwargs, uri = self.router.get(request)
File “c:\users\appdata\local\continuum\anaconda3\lib\site-packages\sanic\router.py”, line 407, in get
return self._get(request.path, request.method, “”)
File “c:\users\appdata\local\continuum\anaconda3\lib\site-packages\sanic\router.py”, line 469, in _get
raise NotFound(“Requested URL {} not found”.format(url))
sanic.exceptions.NotFound: Requested URL /socket.io/ not found
[2019-08-01 11:45:37 +0200] [23200] [ERROR] Exception occurred while handling uri: ‘http://localhost:5005/socket.io/?EIO=3&transport=polling&t=MnCaXHh’
Traceback (most recent call last):
File “c:\users\appdata\local\continuum\anaconda3\lib\site-packages\sanic\app.py”, line 893, in handle_request
handler, args, kwargs, uri = self.router.get(request)
File “c:\users\appdata\local\continuum\anaconda3\lib\site-packages\sanic\router.py”, line 407, in get
return self._get(request.path, request.method, “”)
File “c:\users\appdata\local\continuum\anaconda3\lib\site-packages\sanic\router.py”, line 469, in _get
raise NotFound(“Requested URL {} not found”.format(url))
sanic.exceptions.NotFound: Requested URL /socket.io/ not found
[2019-08-01 11:45:37 +0200] [23200] [ERROR] Exception occurred while handling uri: ‘http://localhost:5005/socket.io/?EIO=3&transport=polling&t=MnCaXHi’
Error:
[2019-09-06 10:46:55 +0200] [13028] [ERROR] Exception occurred while handling uri: ‘http://localhost:5005/socket.io/?EIO=3&transport=polling&t=Mq5mK37’
Traceback (most recent call last):
File “c:\users\user\pycharmprojects\virtual environments\rasax\lib\site-packages\sanic\app.py”, line 893, in handle_request
handler, args, kwargs, uri = self.router.get(request)
File “c:\users\user\pycharmprojects\virtual environments\rasax\lib\site-packages\sanic\router.py”, line 407, in get
return self._get(request.path, request.method, “”)
File “c:\users\user\pycharmprojects\virtual environments\rasax\lib\site-packages\sanic\router.py”, line 469, in _get
raise NotFound(“Requested URL {} not found”.format(url))
sanic.exceptions.NotFound: Requested URL /socket.io/ not found
BTW, this only happens when the socketio client (webchat) is running and hjtting rasa in interactive mode. If u close webchat browser window, error goes away.
BTW, this only happens when the socketio client (webchat) is running and hjtting rasa in interactive mode. If u close webchat browser window, error goes away.
Ah okay, this makes sense. The server is running because you’re using interactive mode, so the socket plug-in can hit ther server, but can’t hit /socket.io/ since that endpoint isn’t up during interactive mode. Honestly, not sure there is much we can do about this, but can look into it.
In the meantime, would recommend to close your client when you’re not using it Alternatively you can do rasa run -p 5050 (or whatever port you want to) and set your socket client to point at that server, so that when you run rasa interactive on 5005, it shouldn’t try to connect.
I am facing the same issue when I have deployed the bot using docker. My sh file looks like -
python -m rasa run actions -p 5055 & python -m rasa run --endpoints endpoints.yml -p 5002 --enable-api --credentials credentials.yml