AppDaemon / appdaemon

:page_facing_up: Python Apps for Home Automation
Other
831 stars 417 forks source link

Socket.IO transport not working on 4.X.X #1780

Open vlad-bil opened 1 year ago

vlad-bil commented 1 year ago

What happened?

Trying to set up the dashboard for the old IPad using transport: socketio and got the errors in console. image

Dashboard not working neither for PC (Windows, Chrome latest) nor IPad (IOS 5.1.1, Chrome or Safari)

Running docker image on Raspberry Pi 3 (4.1.0, latest, dev, always the same)

Version

4.1.0 or :latest or :dev

Installation type

Docker container

Relevant log output

The container logs contains the next error

-04-28 10:40:38.575394 INFO AppDaemon: Got initial state from namespace default
The client is using an unsupported version of the Socket.IO or Engine.IO protocols (further occurrences of this error will be logged with level INFO)

Relevant code in the app or config file that caused the issue

http:
  transport: socketio

Anything else?

if comment-out transport: socketio the dashboard works as expected (of course not on IPad)

gowthamgowtham commented 1 year ago

I also have same issue. I replaced socketio.js in assets/javascript directory in the container with latest (4.6.1) version and managed to fix unsupported version error, but the dashboard still is empty.

I have configured transport: socketio yet I see a protocol upgrade to websocket, not sure if this is correct. Any hints anyone?

image

alexdobo commented 4 months ago

I am also getting this same error on ios 9.3.5

Did anyone have a solution? I found it was working when I was running AppDaemon in Home Assistant via the addon store without any additional configuration...