zmeventnotification websocket error 1006
Posted: Mon Jan 06, 2020 7:17 pm
Hi there,
I have successfully set up Zoneminder within my network and most things are working great.
However i'm having an issue with the websockets connection. I'm not able to connect from ZMNinja (or any other websocket app, Node-Red or chrome extension)
I'm using dlandon's docker v4.6 with default settings except for:
docker port is 8080:80 (as once this is working internally on my network I can use my synology reverse proxy to handle security not ZM)
docker port is 9003:9000 (as 9000 is in use) this is reflected in the zmeventnotification.ini with port 9003
portal=http://192.168.X.X:8080/zm
ZM_USER & ZM_PASS are configured
ServerName = 192.168.X.X
OPT_USE_API is enabled
As per ZMNinja requirement AUTH_HASH_LOGINS is also enabled.
I have tried with both
[ssl]
enable = yes (& enable = no)
However there is no difference when connecting (well except I would connect to wss://192.168.X.X:9003 and ws://192.168.X.X:9003
The error I get from a chrome websocket test client is:
The connection was terminated uncleanly with status code 1006 (ABNORMAL)
The error i get from ZMNinja logs is:
Failed to connect to WebSocket: code: 1006, reason: undefined, exception: The operation couldn't be completed. Connection refused.
Any thoughts folks?
I have successfully set up Zoneminder within my network and most things are working great.
However i'm having an issue with the websockets connection. I'm not able to connect from ZMNinja (or any other websocket app, Node-Red or chrome extension)
I'm using dlandon's docker v4.6 with default settings except for:
docker port is 8080:80 (as once this is working internally on my network I can use my synology reverse proxy to handle security not ZM)
docker port is 9003:9000 (as 9000 is in use) this is reflected in the zmeventnotification.ini with port 9003
portal=http://192.168.X.X:8080/zm
ZM_USER & ZM_PASS are configured
ServerName = 192.168.X.X
OPT_USE_API is enabled
As per ZMNinja requirement AUTH_HASH_LOGINS is also enabled.
I have tried with both
[ssl]
enable = yes (& enable = no)
However there is no difference when connecting (well except I would connect to wss://192.168.X.X:9003 and ws://192.168.X.X:9003
The error I get from a chrome websocket test client is:
The connection was terminated uncleanly with status code 1006 (ABNORMAL)
The error i get from ZMNinja logs is:
Failed to connect to WebSocket: code: 1006, reason: undefined, exception: The operation couldn't be completed. Connection refused.
Any thoughts folks?