hari
(Hari Teneti)
August 13, 2019, 8:14pm
1
I’m trying to migrate to the latest RASA Version and was able to train rasa but when I try to run RASA with rest API option - I am getting the following error ,
Tried with below command
python -m rasa run -m models/model.tar.gz --enable-api --cors *
Also tried with the below docker service but received the same error
rasa:
image: rasa/rasa:latest-full
ports:
- 5006:5005
volumes:
- ./rasa:/app
command:
- run
- -m models
- --enable-api
Attached detailed error message.
Any help is highly appreciated.
Thanks
Hal
(Eva)
August 14, 2019, 7:29am
2
I have a similar problem, you should take a look at my post from yesterday and try the described solutions.
Hi Prashant,
I am new to Rasa and this post really did help me. Thank you very much for this short tutorial. I followed all the steps but the last one gets this error: “AssertionError: A blueprint with the name “custom_webhook_RestInput” is already registered. Blueprint names must be unique.”
When I change the name of the blueprint, I get another error: “sanic.router.RouteExists: Route already registered: /webhooks/rest/ [GET]”
I have no idea what this means and I never saw anything similar in…
Please let me know if this helps you or if you find a different solution.
hari
(Hari Teneti)
August 14, 2019, 7:36pm
3
No,It didn’t resolve the issue. As you have already mentioned in the other thread it didn’t work for me either. Thanks
hari
(Hari Teneti)
August 15, 2019, 12:37pm
4
I was able to resolve the error “sanic.router.RouteExists: Route already registered: /webhooks/rest/ [GET]” by replacing “rest” with “chatroom”. Hope this helps!
class RestInput(InputChannel):
@classmethod
def name(cls):
return "chatroom"
allievo
(MarcoMc)
September 5, 2019, 3:15pm
5
I have similar problem:
AssertionError: A blueprint with the name “custom_webhook_RestInput” is already registered. Blueprint names must be unique.
Any solutions?
hari
(Hari Teneti)
September 5, 2019, 3:44pm
6
Did you try the above solution?
allievo
(MarcoMc)
September 5, 2019, 3:54pm
7
yes but doesn’t work. In fact it logs to the console: “hi from name method”, so this means that this part of the code is working:
@classmethod
def name(cls):
print("hi from name method")
return "rest"
hari
(Hari Teneti)
September 5, 2019, 3:59pm
8
you have to change the name of api endpoint to other than “rest” in the return. you can try
@classmethod
def name(cls):
print(“hi from name method”)
return “chatbot”
The problem is RASA has default api endpoint with the name “rest” so you can not use the same name in your custom channel code.
allievo
(MarcoMc)
September 5, 2019, 4:05pm
9
yes, I tried to change it but I get the same error. It seems the problem is related to blueprint name “custom_webhook_RestInput”