401 Unauthorized every time I load
-
Hello!
Greatly enjoying Zircon3D so far. I have a pretty basic implementation on my HA set up.
I display the resulting 3D model as instructed as an iframe on my dashboard. However, I notice that when I open up my dashboard, instead of the 3D model, I almost always am greeted with a "401: Unauthorized" message until I have loaded the Zircon3D plugin at least once in that session.This is, of course, less than ideal. Is this a known issue, and is there a workaround?
I tried changing the iframe url multiple times to different paths that may circumvent this, but nothing helped.Any help would be greatly appreciated.
Best,
David -
Hi David,
This is unfortunately a known issue related to a Home Assistant API called ingress, which allows our add-on’s UI to communicate with its backend.
It appears that the ingress channel is only fully activated after the add-on UI has been opened at least once from Home Assistant. If the UI is accessed via a web card before that initial opening, Home Assistant may raise this error.
Workaround
As a workaround, our add-on also exposes port 11200, which bypasses Home Assistant’s ingress proxy entirely.
For example, instead of using this URL:
You can replace:
:8123/api/hassio_ingress/ym-tlrzEEeGSTSNCz7up0Gf3uqHboBU5NGFvBfH7AMYwith:
:11200So it becomes:
Additional notes
Home Assistant ingress has caused several issues beyond this one—some users have also reported unstable connections. Accessing Zircon3D directly through port 11200 is generally more stable and can help avoid these ingress-related problems.
It’s possible that the Home Assistant team will improve the ingress proxy in the future. Until then, this is currently the most reliable workaround.
Please give this a try and let us know if it works for you.
Thanks in advance,
Chris