Hi, I'm currently trying to implement a chatbot with my frontend
The chatbot server is running and listens to port 5005 on default. The route snippet where I send the payload and receive the response is the following:
text=form.chat_input.data
payload = json.dumps({"sender": "Rasa","message": text})
headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}
response = requests.request("POST", url="https://localhost:5005/webhooks/rest/webhook",
headers=headers, data=payload)
response=response.json()
resp=[]
This works when I am working locally but I get an error in my error log:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='localhost', port=5005): Max retries exceeded with url: /webhooks/rest/webhook (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7eff9bb9eac0>: Failed to establish a new connection: [Errno 111] Connection refused'))
I'm guessing it has either something to do with the port not being open or me having to alter the url= part of the route code, although the stuff I tried so far (using the IP address I get via console etc.) did not lead to a successful result.
Would be glad if somebody could help me out here what address I have to refer to here to get the webhook working again :)
Thanks