Error while connecting to Facebook messenger

I follow the instructions given in Rasa Docs to connect to Facebook.

But when i click “ Add Callback URL ” and provide this Callback URL "https://0.0.0.0:5002/webhooks/facebook/webhook " and provide a verify token.

Then it shows me the error “The URL couldn’t be validated. Please try again.”

And in terminal where rasa is running it shows this error when i click verify and save button:

Traceback (most recent call last):

File “/usr/local/lib/python3.6/dist-packages/sanic/server.py”, line 267, in data_received self.parser.feed_data(data)

File “httptools/parser/parser.pyx”, line 193, in httptools.parser.parser.HttpParser.feed_data httptools.parser.errors.HttpParserInvalidMethodError: invalid HTTP method

Note: 0.0.0.0 is my server IP

How i can solve this problem, Please help

Hi @PureLogics - I suspect the issue is that you are using https but providing the IP address directly. That won’t work, you’ll need to create an A record to point a domain name to this IP address, and let’s encrypt to create an ssl certificate.

Hi @amn41 , I point a domain name and encrypted ssl certificates and when i enter callback url and verify token while creating FB web-hook as shown in screen shot below:

It gives this error:

The URL couldn't be validated. Callback verification failed with the following errors: curl_errno = 60; curl_error = SSL certificate problem: unable to get local issuer certificate; HTTP Status Code = 200; HTTP Message = Connection established