Invalid http version

Hi guys.need you help.

I have docker with rasa-core… Usinng docker-compose to up dockers on aws.

docker-compose.yml

version: '3.2'
services:
bot-ui:
image: myimage1:latest
ports:
- "8282:8282"
network_mode: bridge
depends_on:
- mongo
env_file:
- bot-ui.env
volumes:
- type: bind
  source: ./creds
  target: /usr/src/app/creds
  bot-brain:
image: myimage1:latest
ports:
- "80:5002"
- "443:5002"
- "5002:5002"
network_mode: bridge
depends_on:
- bot-ui
- duckling
volumes:
- type: bind
  source: ./models/current/dialogue
  target: /app/models/current/dialogue
- type: bind
  source: ./models/current/nlu
  target: /app/models/current/nlu
- type: bind
  source: ./creds
  target: /app/creds
duckling:
image: rasa/duckling
ports:
- "8000:8000"
network_mode: bridge
mongo:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- '../cpd-mongo-db:/data/db'
network_mode: bridge

So dockers are up. and Rasa-core shoots log:

Rasa Core server is up and running on http://localhost:5002

Then I try to trigger rasa-core from Bot-framework using url:

https://myinstanceaddr.amazonaws.com/webhooks/botframework/webhook

But getting error:

<socket fileno=9 … >Invalid http version …

When I use ngrok to test locally it works perfect! thanks in advance and hope for your assistant:)

Can you post the full error trace? I assume you’ve installed a wrong version or something?

Hi. here it is:

bot-brain_1  | <socket fileno=11 sock=172.17.0.6:5002 peer=178.74.244.163:57178>: Invalid HTTP method: "\x16\x03\x01\x01'\x01\x00\x01#\x03\x03X\x14+\xf9\xd5\xbe\xa3\xec\xca\xc9]\xb9\xb7R\x1f;\xc0\x01N\xcdr.\xc9I\xeb\x9a\xcc+\xd6H\n"
bot-brain_1  | 178.74.244.163 - - [2018-10-22 15:49:21] "'#X+�վ����]��R;�N�r.�I��+�H" 400 - 0.000153

Can it be because I am making Https request , but not http? Rasa-core v 0.11

that certainly doesn’t look right. Are you using the right input channel though? because i’m not sure why you’re getting a socket error if you’re using the bot framework channel

Bot framework allows only make https… and whet Rasa-core receives it. it shots error described. Now I switched to Slack channel - it works perfectly. Rasa-core is the best!!! Waiting for new features from you))

1 Like