Closed gorfreed closed 4 months ago
What browser is this and do you have any extensions installed
It doesn't seem to be browser-related. I use Chrome, but I just verified the issue on Edge (no extensions) and on incognito tabs.
Can you screenshot/paste your custom component configuration that you used to add scrypted? Is this is a standalone install, ie, not a HA add-on install, but something separate like Docker?
My HA is docker-based standalone, so I had to install Scrypted via docker compose. The Scrypted custom component was installed through HACS. I didnt change your customize anything and only used the UI for that.
by chance did this also get resolved with the fix from your other bug report?
No it didnt, as the cause for the other one was simply me not reading the appropriate docs while this one I did by the book on a vanilla system. Is there any log readout from some of the systems that might be helpful?
Alternatively, is it possible to obtain the "Scrypted NVR Card Webpage URL" without the embedded Scrypted page on HA? Maybe ID and token can be taken from the main frontend as well? I could then simply use those to generate the code for the custom dashboard panels.
These errors are displayed in the Chrome console at the moment the popup is shown:
does your HA http configuration use anything that might be intercepting 401s or basic auth? I think that's the underlying problem. Seeing the request and response headers would be useful.
Alternatively, is it possible to obtain the "Scrypted NVR Card Webpage URL" without the embedded Scrypted page on HA? Maybe ID and token can be taken from the main frontend as well? I could then simply use those to generate the code for the custom dashboard panels.
that's exactly what this process does, and something is intercepting the auth.
it may also be worth restarting HA or scrypted to see if that resolves it.
Alternatively, is it possible to obtain the "Scrypted NVR Card Webpage URL" without the embedded Scrypted page on HA? Maybe ID and token can be taken from the main frontend as well? I could then simply use those to generate the code for the custom dashboard panels.
that's exactly what this process does, and something is intercepting the auth.
What I meant is if it is possible to manually generate the URL without the Scrypted NVR HA. Maybe the required token and ID are listed elsewhere?
How can I generate the request headers output you need?
These errors are displayed in the Chrome console at the moment the popup is shown:
You can inspect the network tab in the browser to see the headers for these failed requests. I'll add another week to your trial because I'd like to solve this mystery.
What I meant is if it is possible to manually generate the URL without the Scrypted NVR HA. Maybe the required token and ID are listed elsewhere?
the token you see is the same token when you browse to the sidebar and get the browser login prompt. The ids are the camera ids in the url (view scrypted management console externally). If it fails there, it will fail also fail in the card. something is munging the auth in Home assistant.
I installed everything again from the scratch and now everything works. Who knows what has caused this. Anyways, Scrypted is now doing its thing and I successfully embedded its entities on my dashboard. Its very cool! You got a new subscriber :)
@gorfreed when you say everything, does that mean you reinstalled HA as well?
I have installed the custom component for Scrypted via HACS on my HA (latest). When clicking the integration in the sidebar, I am getting a basic auth popup that doesn't accept any user/password (I tried all combinations in use for anything on the machine) which keeps me from using the platform on HA. I cannot identify what is causing this to occur, there is no popup when accessing my Scrypted install directly via its address on the server machine.