juharris / switch-remoteplay

NOT AN OFFICIAL NINTENDO PRODUCT - Control your Switch remotely (no hacking required)
https://jubuntu.eastus.cloudapp.azure.com/
MIT License
288 stars 18 forks source link

Flask-SocketIO server not responding over HTTP and Error 400 Bad Headers when connecting over HTTPS #51

Closed Willsie-Digital closed 3 years ago

Willsie-Digital commented 3 years ago

I just pulled this repo to Raspberry Pi 4B OS: Raspbian Buster 10 Python3: 3.7.3 (default python with Raspbian)

  1. switchremoteplay/server.py starts and connects to switch.
  2. When attempting to connect with browser client over HTTP://raspberrypi:5000 nothing happens.
  3. When connecting using HTTPS://raspberrypi:5000 receive the following error on console
  4. Cannot connect to server using any client

code 400, message Bad HTTP/0.9 request type ('\x16\x03\x01\x02\x00\x01\x00\x0u\x03\x03\x920d\x8b\x03L-om[\x10o'cNu\x19\x83\x12\x91\x8b') IMG_0960

It looks like Flask-SocketIO is ignoring all requests via http and cannot connect over https without having to manually issue a pem and key.

Willsie-Digital commented 3 years ago

Actually the protocol is working over HTTP. just had to add the client website to chromes insecure content allow list. Closing issue