bwssytems / ha-bridge

Home automation bridge that emulates a Philips Hue light system and can control other systems such as a Vera, Harmony Hub, Nest, MiLight bulbs or any other system that has an http/https/tcp/udp interface. This is a compact impl to run on small format computers. This is impl started from this project https://github.com/armzilla/amazon-echo-ha-bridge.
Apache License 2.0
1.45k stars 199 forks source link

Requested Route has not been mapped in Spark for Accept and Not Found 404 Errors #1404

Closed muslimsteel closed 7 months ago

muslimsteel commented 8 months ago

Hello, I have been happily using HABridge in a docker container for about a year now with no issues and today for some reason it started having problems. When I log into the web interface it shows many 404 Not Found error messages on the side panel, (see attached screenshot). The logs also show a bunch of these:

03-28-2024 18:20:19.619 INFO    The requested route [/api/devices] has not been mapped in Spark for Accept: [application/json, text/plain, */*] spark.http.matching.MatcherFilter
03-28-2024 18:20:19.621 INFO    The requested route [/api/devices/hass/devices] has not been mapped in Spark for Accept: [application/json, text/plain, */*]    spark.http.matching.MatcherFilter
03-28-2024 18:20:34.934 INFO    The requested route [/api/devices] has not been mapped in Spark for Accept: [application/json, text/plain, */*] spark.http.matching.MatcherFilter
03-28-2024 18:20:34.986 INFO    The requested route [/api/devices] has not been mapped in Spark for Accept: [application/json, text/plain, */*] spark.http.matching.MatcherFilter
03-28-2024 18:20:34.987 INFO    The requested route [/api/devices/backup/available] has not been mapped in Spark for Accept: [application/json, text/plain, */*]    spark.http.matching.MatcherFilter
03-28-2024 18:20:59.928 INFO    The requested route [/api/0f57486ed5cf4d20a945eff81c262629/lights] has not been mapped in Spark for Accept: [null]  spark.http.matching.MatcherFilter
03-28-2024 18:21:00.524 INFO    The requested route [/api/devices/harmony/activities] has not been mapped in Spark for Accept: [application/json, text/plain, */*]  spark.http.matching.MatcherFilter
03-28-2024 18:21:00.525 INFO    The requested route [/api/devices/harmony/devices] has not been mapped in Spark for Accept: [application/json, text/plain, */*]

Screenshot 2024-03-28 at 9 23 33 PM

I tried dropping in an old backup of the config and DB files and it did not make a difference, I also checked the file permissions and those are as they should be as well. I am a little lost on how to fix this. DB and Config files attached (passwords removed). Thanks in advance!

ha-bridge.config.txt device.db.txt

muslimsteel commented 7 months ago

Found the issue was with my Harmony hub. I blew away the container and the config files and started from scratch, added my home assistant instance and it was fine, once I added the Harmony hub it started freaking out. Turns out I don't really need it anyways so everything is back to working. Thanks.