Hi, so I have already trained and run the rasa model on my system, and it opens in localhost:5005. I have vital pbx in my oracle VM, and I need to connect to my localhost on my system. Can anyone help me with how to do this? Does anyone know if the IPv4 address shown at whatsmyip.com can be used to curl my API webhook from rasa?
You’ll need to open that port on your VM. I’m not familiar with vital pbx, but as long as the port is open and your VM has a public IP address then you will be able to connect to the Rasa REST API. Make sure it is enabled in your credentials.yml file.
say I have the ip 10.10.10.10 , then two questions:
-
how do i curl the rasa server api from the terminal of my local machine? I tried
curl -XPOST -i localhost:5005/webhooks/rest/webhooks ‘{“message”:“hello”}’
but that didn’t work. It returns:
HTTP/1.1 404 Not Found
Connection: keep-alive
Keep-Alive: 5
Access-Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Length: 54
Content-Type: text/plain; charset=utf-8
- can I curl it from the terminal of the VM/ another machine?
I have no idea of how IP addresses work, so please bear with my questions.
It should be:
http://10.10.10.10:5005/webhooks/rest/webhook
if you are connecting remotely or
http://localhost:5005/webhooks/rest/webhook
when pinging locally.
Note there is no “s” in the last part of the endpoint.
If that doesn’t work, please share a redacted version of your credentials file.
I used ngrok. thank you for your replies, sir