Hello,
I have configured a webhook for Rasa and added the Hook Urls and apikey.
I can send from Rasa to Rocketchat, but wehn i use:
curl -X POST
-H “Content-Type: application/json”
-d ‘{“message”: {“text”: “hello!”, “m”: {“_id”: “myrocketchatusername”}}, “bot”: {“_id”: “Rocketchatbotname”}}’
http://192.168.151.197:5005/webhooks/rocketchat/webhook
I get on the other Server a 500 error and on rasa:
Exception occurred while handling uri: ‘http://192.168.151.197:5005/webhooks/rocketchat/webhook’ Traceback (most recent call last): File “handle_request”, line 83, in handle_request ) File “/root/venv/lib/python3.8/site-packages/rasa/core/channels/rocketchat.py”, line 167, in webhook await self.send_message( File “/root/venv/lib/python3.8/site-packages/rasa/core/channels/rocketchat.py”, line 132, in send_message output_channel = self.get_output_channel() File “/root/venv/lib/python3.8/site-packages/rasa/core/channels/rocketchat.py”, line 176, in get_output_channel return RocketChatBot(self.user, self.password, self.server_url) File “/root/venv/lib/python3.8/site-packages/rasa/core/channels/rocketchat.py”, line 20, in init self.rocket = RocketChat(user, password, server_url=server_url) File “/root/venv/lib/python3.8/site-packages/rocketchat_API/APISections/base.py”, line 36, in init self.login(user, password) # skipcq: PTC-W1006 File “/root/venv/lib/python3.8/site-packages/rocketchat_API/APISections/base.py”, line 157, in login login_request = self.req.post( File “/root/venv/lib/python3.8/site-packages/requests/api.py”, line 115, in post return request(“post”, url, data=data, json=json, **kwargs) File “/root/venv/lib/python3.8/site-packages/requests/api.py”, line 59, in request return session.request(method=method, url=url, **kwargs) File “/root/venv/lib/python3.8/site-packages/requests/sessions.py”, line 589, in request resp = self.send(prep, **send_kwargs) File “/root/venv/lib/python3.8/site-packages/requests/sessions.py”, line 697, in send adapter = self.get_adapter(url=request.url) File “/root/venv/lib/python3.8/site-packages/requests/sessions.py”, line 794, in get_adapter raise InvalidSchema(f"No connection adapters were found for {url!r}") requests.exceptions.InvalidSchema: No connection adapters were found for ‘“https://MYROCKETCHAT INGOINGWEBHOOKURLWITHKEYORSMTHNG”/api/v1/login’
I dont know why it seems to try to add the /api/v1/login - the erro is the same. our Rocketchat doesnt have anything at myrochetchat-url.net/api/v1/login (in browser opeded:{“status”:“error”,“message”:“API endpoint does not exist”})
What i else can tell that i noted the url from RC states status:okay, but the Rasa one is just a blanc page.
Thank you in advance for any tips!