SAP-archive / SAPConversationalAI

✨ 🤖 🤖 Build your own conversational bot on our Collaborative Bot Platform! 🤖🤖 ✨
https://cai.tools.sap
284 stars 68 forks source link

Webhooks POSTing Empty Data #68

Closed mattlemmone closed 6 years ago

mattlemmone commented 6 years ago

Hello,

Ever since the newer webhooks were introduced, my bot stopped working. Webhooks used to post the expected data (conversation id, etc) correctly to my endpoint. Now I am only receiving an empty JSON object. My goal is to use the "default" body template since I only need access to the conversation id.

I have been able to POST and use data on my server using a client other than Recast, so I know there is no issue with my server.

ftriquet commented 6 years ago

Hi @mattlemmone , Can you provide the username and bot name of the impacted bot? If you don't want to write them here you can reach me (francois) on our community slack (https://recastai-community.slack.com).

mattlemmone commented 6 years ago

Hi Francois, I pinged you on Slack. Thanks!

aymen-mouelhi commented 6 years ago

@ftriquet I have the same issue. I am using flask, from a local web server it seems that it is working correctly. Once it is deployed to heroku, I receive the webhook but without any POST data. I tried setting the Content-Type to application/json, but that didn't fix the issue.

ftriquet commented 6 years ago

@aymen-mouelhi Do you use http auth in your webhook?

dbousque commented 6 years ago

@aymen-mouelhi This is a know flask issue, update to the latest version :)