Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Does the webhook URL have to be under the domain "*.ngrok.io"? #7

Open
MingZhang-PS opened this issue May 15, 2018 · 8 comments
Open
Assignees

Comments

@MingZhang-PS
Copy link

I tried to deploy my webhook on SCP cloud platform, the webhook URL looked like https://ming-chatapp-demo.cfapps.sap.hana.ondemand.com/respone. But it is strange that there is no request come into my webhook

@dbousque
Copy link

Hi @MingZhang860612 :) Webhooks don't have to to be under the domain "ngrok.io", the only constraint is that it's https with a valid certificate. The request made is a POST, maybe your server only handles GET for this route ? If you still have issues, could you please invite me as a collaborator to your bot (my nickname is 'dominik') and show me an exemple of a conversation where the problem happens ?

@TechSkieur
Copy link

Hi @dbousque , I added you as a collaborator into my bot, you may go to the skill greetings and find the Actions I defined. I try to use a webhook to call API: https://recast-integration-proxy.cfapps.sap.hana.ondemand.com/dialog, this API only supports POST method. But based on our CF logs, the request does not come to the service. In postman, this API is working correctly.

Thanks,

yangyang

@dbousque
Copy link

Hi @TechSkieur and @MingZhang860612. It seems to be linked to an SAP network issue. Try this request inside and outside of SAP's network :

curl -X POST -H 'Content-Type: application/json' https://recast-integration-proxy.cfapps.sap.hana.ondemand.com/dialog -d '{}'

For me, it's working inside (HTTP 400) but not outside (crash). This is pretty much the request that the bot-builder makes to your server. Do you know what might happen ?

@TechSkieur
Copy link

@dbousque Yes, I noticed this issue as well. I'm not sure whether it's due to the Canary landscape of SCP. I throw a ticket to them. Thanks.

yangyang

@anil541992
Copy link

Hi,
@MingZhang860612 Did you find a solution to the above issue?.Even i am facing the same issue,kindly help
regards,
Anil

@dbousque
Copy link

Try to query your server from inside and outside of SAP's network, you will probably see that your server is not available on the internet.

@anil541992
Copy link

Thanks a lot for your response!!
Yes you are absolutely right,how do i proceed ?

@dbousque
Copy link

I don't know, I suppose there should be a way to make a server hosted on SCP cloud platform available on the internet, but maybe they want to prevent that for now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants