Unable to call rest api to call webhook on rasa x deployment

Got Rasa X deployed following the tutorial. From the web UI, talking to the bot works.

I’m trying to send a message through the rest api to the bot using the following command:

curl --header "Content-Type: application/json" --request POST --data '{"sender":"test","message":"Hi"}' http://localhost/core/webhooks/rest/webhook

Got the following error from curl:

Error: Requested URL /webhooks/rest/webhook

The following error is logged in rasa production docker:

[1] [ERROR] Exception occurred while handling uri: ‘http://localhost/webhooks/rest/webhook’ Traceback (most recent call last): File “/opt/venv/lib/python3.6/site-packages/sanic/app.py”, line 940, in handle_request handler, args, kwargs, uri, name = self.router.get(request) File “/opt/venv/lib/python3.6/site-packages/sanic/router.py”, line 411, in get return self._get(request.path, request.method, “”) File “/opt/venv/lib/python3.6/site-packages/sanic/router.py”, line 475, in _get raise NotFound(“Requested URL {} not found”.format(url)) sanic.exceptions.NotFound: Requested URL /webhooks/rest/webhook not found

How do I get this working?

Why don’t you try this way:


I got connection refused error if I add port 5005 to the request

Can you check Which port your rasa server is running?