TypeError: name() takes 0 positional arguments but 1 was given r - Rasa Open Source - Rasa Community Forum

👋 Introducing the Rasa Playground

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

post by Gourav on Apr 13, 2021

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

custom_channel.py (2.7 KB)

post by theainerd on Jun 13, 2021

Hey did you find the solution to this ?

post by kormoczi on Jul 8, 2021

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

post by Naphtali on Nov 16, 2021

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

Related topics

Topic Replies Views Activity
RASA Custom Connector keep giving custom response 13 2.9k Sep 2021
Looking for help in implementing Custom Channel 7 657 Aug 2022
Custom connector channel problem 2 730 Jun 2023
[Solved]NameError : name ‘rasa’ is not defind 6 1.6k Jul 2019
Custom connector error 13 2.1k Mar 2022