How to run rasa on HTTPS

Hi @erohmensing

I have running a chatboat widget on HTTPS but when it requests rasa for conversation it gives this error:

    Mixed Content: The page at 'https://mychatbot.net/' was loaded over HTTPS, but requested an insecure resource 'http://0.0.0.0:5003/webhooks/rest/webhook'. This request has been blocked; the content must be served over HTTPS.

Note: 0.0.0.0 is my server ip

How i can i run rasa over https? please help

Hi @PureLogics, we actually just added support for this 3 days ago in rasa 1.2.5, you’re in luck! Instructions can be found here: Running the Server

1 Like

It showing this error:

OSError: [Errno 98] error while attempting to bind on address ('0.0.0.0', 5005): address already in use

hi @erohmensing, the command is running fine but it just showing "Staring Rasa server on https://localhost:5005 " and not moving on. As you can see in screenshot:

What do you mean it is not moving on? That message means the server is started and you can send messages.

That’s working fine. Thanks

@erohmensing i follow all the steps to integrate rasa with facebook messenger but when i try to create a web-hook on facebook by providing callback url and verify token and hit the verify and save button it shows me 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

How can i connect rasa with FB messenger?

Please help and thanks for your all good responses

Hm, can you run the rasa server on debug mode and see if there is anything in there? If you are doing it with ngrok, any relevant http requests in there would be helpful too. What’s the callback url you’re providing?

I run rasa server on debug mode but there is nothing. and i’m not using ngrok. simply i run rasa on live server i trying to connect it to facebook messenger but getting the error above

And you can see the callback url in screenshot:

Well this won’t be working because you aren’t running the server on example.com :smiley:you have to deploy it to a server either using ngrok or some other manner

Example.com is just an example… there is hostname of my running server like: https://hostname/webhooks/facebook/webhook

Is there any need to add something in endpoints?

No, endpoints shouldn’t be required, just credentials.yml. It might have something to do with how your server handles https traffic

how can i do it. Please help

How is your server deployed? I don’t have any information about what type of server you’re using. If there is nothing in the Rasa logs, that means that the information is not reaching Rasa, so it’s not anything I would be able to debug from our side.

Can you hit the server not from facebook? E.g. with a rest channel?

when facebbok send request to my server and if my server is running then it shows this error with connection established.

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

and if my server is not running then it shows this error with connection failed:

The URL couldn't be validated. Callback verification failed with the following errors: curl_errno = 56; curl_error = Received HTTP code 503 from proxy after CONNECT; HTTP Status Code = 503; HTTP Message = Failed to connect to server

Yes it hit with rest channel

And rest works fine? Then it’s probably something on facebook’s side