t0bst4r / home-assistant-matter-hub

Publish your Home-Assistant Instance using Matter.
Apache License 2.0
146 stars 8 forks source link

Unexpected token 'T', "Too Many Requests" is not valid JSON #177

Open sofakng opened 18 hours ago

sofakng commented 18 hours ago

I've just installed this using Docker and I'm accessing this through a reverse proxy (Traefik) but it shows an at the bottom:

"Unexpected token 'T', "Too Many Requests" is not valid JSON"

image

Also, the [+] is missing to add a bridge ...

t0bst4r commented 18 hours ago

The [+] is missing because the initial request to fetch the bridges already fails.

Can you open the "developer tools" of your browser (most browsers use F12). Then switch to the network tab and refresh the page. There should be request failing (red) called "bridges". Select it and head over to the "response" tab. What does it show?

sofakng commented 18 hours ago

It's quite strange because if I refresh a couple of times it might work and then stop working.

It looks like bridges is usually (always?) successful but the javascript file has lots of code 429 (Too Many Requests)...

Maybe something to do with the reverse proxy? (I have the reverse proxy working with 10+ other applications so it's odd this isn't working by default)

t0bst4r commented 18 hours ago

Interesting. I need to check if there is an error-handling bug. E.g. when it fails it retries immediately. And then you somehow get the too many requests error.

I'll try to reproduce it.