Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Zircon3D

Zircon3D community

  1. Home
  2. Questions & Feedback
  3. 401 Unauthorized every time I load

401 Unauthorized every time I load

Scheduled Pinned Locked Moved Questions & Feedback
3 Posts 2 Posters 39 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • David SapersteinD Offline
    David SapersteinD Offline
    David Saperstein
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • chrisC Offline
      chrisC Offline
      chris
      wrote on last edited by
      #2

      Hi David, thank you very much for reporting this issue. We’ll investigate it and get back to you as soon as possible.

      1 Reply Last reply
      0
      • chrisC Offline
        chrisC Offline
        chris
        wrote on last edited by
        #3

        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:

        http://homeassistant.local:8123/api/hassio_ingress/ym-tlrzEEeGSTSNCz7up0Gf3uqHboBU5NGFvBfH7AMY/offline/viewer/?group=haEBrqFXAEIs&project=sLVclZKQrCvP#cam&p=0.00,0.00,0.00&h=40.11&v=39.56&z=400.00|dsp&fs=1.00&fd=tc&wc=1.00&wd=t&od=tc&thm=auto|viz&layer=rkqaX00R

        You can replace:

        :8123/api/hassio_ingress/ym-tlrzEEeGSTSNCz7up0Gf3uqHboBU5NGFvBfH7AMY

        with:

        :11200

        So it becomes:

        http://homeassistant.local:11200/offline/viewer/?group=haEBrqFXAEIs&project=sLVclZKQrCvP#cam&p=0.00,0.00,0.00&h=40.11&v=39.56&z=400.00|dsp&fs=1.00&fd=tc&wc=1.00&wd=t&od=tc&thm=auto|viz&layer=rkqaX00R

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups