[35484] [ERROR] Exception occurred while handling uri: 'http://127.0.0.1:5005/socket.io/?EIO=3&transport=polling&t=MkFMele'

Hi,

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

Juven

1 Like

Hm what command are you using to run rasa interactive? and can you post your endpoints.yml and credentals.yml?

I’m facing the same issue. I run

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

Same issue

rasa interactive --endpoints endpoints.yml

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

I get same on rasa shell and rasa interactive. It doesn’t break it, but it’s very distracting when trying to build models.

@erohmensing You asked for endpoints.yml and credentials.yml. Mine are here:

endpoints.yml

action_endpoint:
  url: "http://localhost:5055/webhook"

credentials.yml

rest: 

socketio:
   user_message_evt: user_uttered
   bot_message_evt: bot_uttered
   session_persistence: false

rasa:
  url: "http://localhost:5005/api"

facebook:
  verify: "rasa-chatbot"
  secret: "<secret>"
  page-access-token: "<token>"

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.

Issue created: Running socket client throws errors during Interactive Learning · Issue #4487 · RasaHQ/rasa · GitHub

In the meantime, would recommend to close your client when you’re not using it :slight_smile: 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.

Hello @erohmensing ,

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

Can you tell me how can I handle this issue?