question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Socket Channel not working in rasa 3.0.0

See original GitHub issue

Rasa Open Source version

3.0.0

Rasa SDK version

3.0.0

Rasa X version

No response

Python version

3.8

What operating system are you using?

Linux

What happened?

Using the rasa chat widget to talk to the bot throws the following exception in rasa 3.0.0:

[2021-11-28 13:09:58 +0000] [4700] [ERROR] Exception occurred while handling uri: 'http://localhost:5005/socket.io/?EIO=4&transport=polling&t=Nrcgg60'
Traceback (most recent call last):
  File "handle_request", line 83, in handle_request
    class Sanic(BaseSanic, metaclass=TouchUpMeta):
  File "/opt/venv/lib/python3.8/site-packages/engineio/asyncio_server.py", line 317, in handle_request
    return await self._make_response(r, environ)
  File "/opt/venv/lib/python3.8/site-packages/engineio/asyncio_server.py", line 385, in _make_response
    response = make_response(
  File "/opt/venv/lib/python3.8/site-packages/engineio/async_drivers/sanic.py", line 102, in make_response
    return HTTPResponse(body=payload, content_type=content_type,
TypeError: 'NoneType' object is not callable

This did not happen in rasa 2.8.15.

This repo contains a reproducible example.

Command / Request

No response

Relevant log output

No response

Definition of done

  • Determine if the cause is in Rasa Open Source 3.0
  • If the problem is in Rasa Chat Widget, update this issue and move to Fabric backlog
  • Try to add test for this?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:26 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
m-vdbcommented, Jan 11, 2022

python-engineio has released a new version with the fix: 4.3.1 🎉

3reactions
jonra1993commented, Dec 3, 2021

I am facing similar error with rasa 3.0.1 I just added https://cdn.jsdelivr.net/npm/rasa-webchat/lib/index.js on my index.html

[2021-12-02 20:35:12 -0500] [88145] [ERROR] Exception occurred while handling uri: 'http://localhost:5005/socket.io/?EIO=4&transport=polling&t=NrzxbjF'
Traceback (most recent call last):
  File "handle_request", line 83, in handle_request
    class Sanic(BaseSanic, metaclass=TouchUpMeta):
  File "/Users/jona/Library/Caches/pypoetry/virtualenvs/rasa-assistant-_8IB3lkj-py3.7/lib/python3.7/site-packages/engineio/asyncio_server.py", line 317, in handle_request
    return await self._make_response(r, environ)
  File "/Users/jona/Library/Caches/pypoetry/virtualenvs/rasa-assistant-_8IB3lkj-py3.7/lib/python3.7/site-packages/engineio/asyncio_server.py", line 388, in _make_response
    response_dict['response'], environ)
  File "/Users/jona/Library/Caches/pypoetry/virtualenvs/rasa-assistant-_8IB3lkj-py3.7/lib/python3.7/site-packages/engineio/async_drivers/sanic.py", line 103, in make_response
    status=int(status.split()[0]), headers=headers_dict)
TypeError: 'NoneType' object is not callable

I tried installing @nimitkh version using poetry but I got a version error with sanic==21.6.0 and sanic-routing==0.7.0

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Socket Channel not working in rasa 3.1.0
It's just a matter of the sanic version meeting the compatibilities and all will be sorted. Good Luck! ... I'm facing the same...
Read more >
Not able to connect to rasa custom action via slack bolt socket ...
Hi I am facing error when sending the message from slack to rasa via slack bolt. I am using socket mode so using...
Read more >
THE RASA MASTERCLASS HANDBOOK - HubSpot
Connecting with messaging channels and deploying the assistant ... Test the newly trained model by running the Rasa CLI command, rasa shell nlu...
Read more >
Create your chatbot using Rasa and deploy it on AWS - Medium
You can do that by running rasa init command in the terminal. ... You must enable the socket.io credentials in the credentials.yml file...
Read more >
rasa Changelog - pyup.io
[10412](https://github.com/rasahq/rasa/issues/10412): Fix Socket IO connection ... Note that the parameter `template` will be deprecated in Rasa SDK 3.0.0.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found