I have installed Rasa X on Google Cloud Compute Engine using docker. I have configured SSL certificates and assigned domain name.
So now I have URL like this https://domain_name.com/
When I open it in UI, everything is working (including custom actions).
However, it doesn’t work, if I specify the same URL in Webhooks Callback URL for integration with Facebook Messenger.
I have the error:
* The URL couldn't be validated. Response does not match challenge, expected value="1903563423", received="\u003C!doctype html>\u003Chtml..."
I have checked curl https://domainname.com and got a response.txt (3.0 KB) without SSL error.
If I change the domain name to IP address, then I get the SSL error The URL couldn't be validated. Callback verification failed with the following errors: curl_errno = 51; curl_error = SSL: no alternative certificate subject name matches target hostname
Yes, I have verify token, secret, page access in credentials.yml in /etc/rasa/ directory. Credentials were validated from my local machine and connection with FB messenger was done successfully.
Is there another way how to check logs? I use only docker-compose logs -f.
what happens if you run curl http://domain_name.com/webhooks/facebook/webhook?hub.mode=subscribe&hub.challenge=729904826&hub.verify_token=token on your local machine ?
@amn41 thank you for your reply! Actually the issue that I can’t connect Rasa X that is installed in Google Cloud in docker with Facebook messenger. Error:
> "The URL couldn't be validated. Response does not match challenge, expected value="251251277", received="\u003C!doctype html>\u003Cht...""
I use https domain name. I have verify token , secret, page access in credentials.yml in /etc/rasa/ directory. Credentials were validated from my local machine and connection with FB messenger was done successfully.
hi @TatianaParshina - the issue is definitely with the URL - seems like there’s no SSL issue. If Rasa X is returning HTML, what happens when you visit the challenge url in the browser? Did you iniclude the /api part in the url?
If I open URL https://doman_name.com/webhooks/facebook/webhook?hub.mode=subscribe&hub.challenge=1234402894&hub.verify_token=Token
in the browser, then the page redirected to the main page https://doman_name.com/conversations
I am not sure why I need /api part in Facebook integration. But I have tried to open
https://doman_name.com/api/webhooks/facebook/webhook?hub.mode=subscribe&hub.challenge=1234402894&hub.verify_token=Token
Reply:
Not found.
My credentials.yml file in the directory etc/rasa/ has:
hi @Paras ! since this was causing some confusion, we removed the requirement to add /core to the url , so just https://domain-name.tk/webhooks/facebook/webhook should work