ioBroker / ioBroker.web

Simple WWW web server on express for ioBroker
MIT License
47 stars 22 forks source link

[bug]: included simpleApi doesn't work as normal simpleApi #437

Open mcuiobroker opened 1 week ago

mcuiobroker commented 1 week ago

https://forum.iobroker.net/topic/75377/gel%C3%B6st-simple-api-states-mit-filter

simpleApi with Port 8082 wth pattern is not working http://ipaddress:8082/states?pattern=system.adapter.admin.0*&prettyPrint -> see link above

Try http://ipaddress:8082/states?pattern=system.adapter.admin.0*&prettyPrint with internal simpleApi on web-Adapter

Behaviour should be the same as from Port 8087 from original simpleApi.

Adapter: 6.2.6 Node: 20.14.0 js-controller: 5.0.19

Apollon77 commented 1 week ago

Hm ... please enable debug log and provide a log.

My assumption is that simple api gets registered, BUT still also the normal file handlers are registeres and that they answer "faster"

mcuiobroker commented 1 week ago

web.0 2024-06-21 09:44:09.204 info http server listening on port 8082 web.0 2024-06-21 09:44:09.201 debug Activating web files from objectDB web.0 2024-06-21 09:44:09.201 info Allow states only when user is owner: false web.0 2024-06-21 09:44:09.201 info simpleAPI server listening on port 8082 web.0 2024-06-21 09:44:09.199 debug Activating simple API web.0 2024-06-21 09:44:09.199 debug Activating extensions web.0 2024-06-21 09:44:09.199 info socket.io server listening on port 8082 web.0 2024-06-21 09:44:09.169 debug Activating IOSocket web.0 2024-06-21 09:44:09.168 debug Secure connection not enabled - using http createServer web.0 2024-06-21 09:44:09.167 debug Activating states & socket info web.0 2024-06-21 09:44:09.144 info starting. Version 6.2.6 in /opt/iobroker/node_modules/iobroker.web, node: v18.20.3, js-controller: 5.0.19 web.0 2024-06-21 09:44:09.032 debug Plugin sentry Initialize Plugin (enabled=true) web.0 2024-06-21 09:44:09.020 debug States connected to redis: 0.0.0.0:9000 web.0 2024-06-21 09:44:08.972 debug States create User PubSub Client web.0 2024-06-21 09:44:08.972 debug States create System PubSub Client web.0 2024-06-21 09:44:08.969 debug Redis States: Use Redis connection: 0.0.0.0:9000 web.0 2024-06-21 09:44:08.960 debug Objects connected to redis: 0.0.0.0:9001 web.0 2024-06-21 09:44:08.958 debug Objects client initialize lua scripts web.0 2024-06-21 09:44:08.949 debug Objects create User PubSub Client web.0 2024-06-21 09:44:08.949 debug Objects create System PubSub Client web.0 2024-06-21 09:44:08.948 debug Objects client ready ... initialize now web.0 2024-06-21 09:44:08.937 debug Redis Objects: Use Redis connection: 0.0.0.0:9001