The reason you are getting this error is that the endpoint only allows the POST method. It also means your Rasa server has botframework endpoint enabled.
Check if rasa server has botframework enabled (Method: GET, or simply hit the URL in your browser):
Rasa Endpoint: https://{hostname/ip}/webhooks/botframework
Rasa X Endpoint: https://{hostname/ip}/core/webhooks/botframework
Response: {"status":"ok"}
Botframework webhook URL to interact with Rasa server or to set in the Azure (Method: POST):
Rasa Endpoint: https://{hostname/ip}/webhooks/botframework/webhook
Rasa X Endpoint: https://{hostname/ip}/core/webhooks/botframework/webhook
If you want to test the endpoint manually, use the body {"message" : "Testing botframework endpoint", "sender": "username"} for the POST method, and it should return you success with status code 200 OK.
2020-07-01T16:33:18.914+05:30 [APP/PROC/WEB/0] [ERR] File “/home/vcap/deps/0/python/lib/python3.7/site-packages/rasa/core/channels/botframework.py”, line 230, in webhook
2020-07-01T16:33:18.914+05:30 [APP/PROC/WEB/0] [ERR] if postdata[“type”] == “message”:
Thanks for your reply, where we need to set API permissions in azure? could you please provide screen shots for setup API for permission. It is working perfectly fine for ngrok on localhost. when i deploy into Cloud then I am not getting any response and no error in rasa server logs. Webhook api is not allowing rasa server(cloud) application due to organization domain.
If it is working on your local + ngrok setup, the issue is not there on rasa. It is more of a network firewall related issue. Check if the pings are successful between the servers. If the pings are not going through, check if the ports are open and accepting connections, you can whitelist specific servers to allow the connection.
I have attached the screenshots anyway in case its helpful.
Hi @nchauras, I was able to work with Microsoft teams when I made the bot available in every domain. But if I wanted my bot to available only to my office domain, what permissions should I add. I have added the 7 permissions as shown in the screenshot. But I’m not able to receive messages in teams as well as webchat. I’m able to see the messages, responses in rasa-x, but responses are being shown in teams and webchat.
What to add in the bot handle when I try to register a new bot with Microsoft Bot Framework? If our chatbot is currently being deployed through AWS and it is not registered in the Azure AI Bot Service?
I would like to connect my rasa chatbot with Azure bot service, I have used ngrok to expose my rasa server which is running in localhost 5005, im getting the response in postman while checking the forwarded link that ngrok provides.
But while connnecting with azure bot service, I have given my app_id and app_password provided in azure bot service in credentials.yml file in rasa server and rerun the server and tried testing it in azure web chat, it gives me 401 unauthorized error.