Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

HTTPS does not seem supported #74

Closed
kootenpv opened this issue Dec 19, 2018 · 3 comments
Closed

HTTPS does not seem supported #74

kootenpv opened this issue Dec 19, 2018 · 3 comments

Comments

@kootenpv
Copy link

When using the bot.py as a backend, in the logs we get things like:

<gevent._socket3.socket object, fd=18, family=2, type=2049, proto=0>: Invalid http version: '\x16\x03\x01\x02\x00\x01\x00\x01ü\x03\x03\x96@¶§´/CT\x96Nn\x99ÆÓÝ\x12tM\x95\x13X«Ã1°\x1aéÆ7 \x82\x87 :7\x11N\\µ~"J^K/\x8aí\x92\x92\x89\x8b)i¨ìãmäÁ3\xadõ)½\'\x00"jj\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00\n'
10.240.255.107 - - [2018-12-19 14:37:20] "ü@¶§´/CTNnÆÓÝtMX«Ã1°éÆ7  :7N\µ~"J^K/í)i¨ìãmäÁ3­õ)½'"jjÀ+À/À,À0̨̩ÀÀ/5" 400 - 0.000158
<gevent._socket3.socket object, fd=18, family=2, type=2049, proto=0>: Invalid HTTP method: '\x16\x03\x01\x00è\x01\x00\x00ä\x03\x03\x89Ýé\x12¹L\x1d\x0fê¿á±\x83Y1\x1b0ßs%T²\r\x08¼îÁ\x95Pļ}\x00\x00\x1cjjÀ+À/À,À0̨̩À\x13À\x14\x00\x9c\x00\x9d\x00/\x005\x00\n' 

but only when it is deployed on https (e.g. as a container in Azure).

It reminds me of this issue: miguelgrinberg/Flask-SocketIO#188

Any idea what we can do to patch this? Somehow we have to do something with SSL perhaps?

@hotzenklotz
Copy link
Member

Weird. We have the chatroom running with HTTPs on several sites. Which version of the Chatroom are you using?

Bot.py is meant only as an example. We typically integrate the channel through Rasa Core's credentials.ymlfile (See https://rasa.com/docs/core/connectors/#using-the-run-script and https://github.com/scalableminds/chatroom#simple-usage-with-a-custom-rasa-core-project-on-cli). I am not sure if this helps, though.

At the end of the day, the latest version of the chatroom does not start a flask server itself. Rather, Rasa Core starts a Flask server and adds the blueprints for each individual channel integration (e.g. Facebook, Slack, Chatroom). Have you tried using one of the standard Rasa Core connectors in your SSL setup to narrow down the problem?

@normanrz
Copy link
Member

Typically, we have a reverse proxy (such as nginx or AWS ELB) in front of the rasa flask server that handles HTTPS.

@kootenpv
Copy link
Author

Thanks, yea I have used a reverse proxy to solve this. Thanks everyone.

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

3 participants