TypeError: name() takes 0 positional arguments but 1 was given r

Error in custom connector.

Rasa version: 2.4.x

Python version: 3.7.0

rasa_server_1 | File “/opt/venv/lib/python3.8/site-packages/rasa/core/channels/channel.py”, line 89, in register rasa_server_1 | p = urljoin(route, channel.url_prefix()) rasa_server_1 | File “/opt/venv/lib/python3.8/site-packages/rasa/core/channels/channel.py”, line 108, in url_prefix rasa_server_1 | return self.name() rasa_server_1 | TypeError: name() takes 0 positional arguments but 1 was given r

custom_channel.py (2.7 KB)

credentials.yml (1.1 KB)

Hey did you find the solution to this ?

I have a very similar problem. I am using Rasa 2.7.1. Does anybody have any suggestion?

Hello,

I think the channel.py was changed, but the doc about CustomConnector was not. Instead of

from rasa.core.channels.channel import InputChannel

class MyIO(InputChannel):
    def name() -> Text:
        """Name of your custom channel."""
        return "myio"

try

class MyIO(InputChannel):
    def name(name) -> Text:
        return "myio"

Kind regards, Naph

2 Likes