home-assistant / my.home-assistant.io

The portal to your home.
https://my.home-assistant.io/
32 stars 19 forks source link

Blueprint links giving errors on PC but work fine using HA Companion #479

Open dinki opened 1 month ago

dinki commented 1 month ago

@frenck Seeing problems again. Users are reporting errors opening my blueprints . I am also seeing it and getting this page when opening any on PC:

image

Oddly enough, when I click a blueprint like this one:

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

on my phone it will import without problem as it opens in HA Companion BUT when doing the same on PC it gives the error above. Know that this link was working fine last week. I am running 2024.8 so perhaps something in the new release is causing this on PC browsers? How can this be troubleshoot? The error provided is nondescript.

Thanks again. Having this functionality is fantastic for a project like mine as the user can add functionality easily and at their choice but when things stop working it makes it really difficult.

dinki commented 1 month ago

Adding additional information:

Not all users are affected by this error. Users are able to import the GH raw link to the file without issue using the 'Import Blueprint' button from the HA web interface. Interestingly this user does not need to have the Unicode %20 converted to space character like is needed when using the link generator.

Here's an example of a link that imports without issue when manually loading via web interface but produces and error when using the link created using the link generator:

https://raw.githubusercontent.com/dinki/View-Assist/main/View%20Assist%20custom%20sentences/Hows%20the%20weather/blueprint-howstheweather.yaml

I'm in a difficult spot trying to troubleshoot this and support. Any guidance on how to get this sorted is greatly appreciated.