elax46 / custom-brand-icons

Custom brand icons for Home Assistant
https://elax46.github.io/custom-brand-icons/
Other
849 stars 94 forks source link

Custom Brand Icons Not Loading - 404 Error for custom-brand-icons.js #769

Closed cloudbr34k84 closed 1 month ago

cloudbr34k84 commented 1 month ago

Describe the bug: The custom-brand-icons.js file is not being loaded, resulting in a 404 error. This issue occurs when accessing the resource from the following URL: https://ha.cloudbr34k.xyz/local/custom-brand-icons.js.

Steps to reproduce:

Open Home Assistant and navigate to the Lovelace resources page. Check the browser's developer tools for network requests. Notice that the request for custom-brand-icons.js returns a 404 error. Expected behavior: The custom-brand-icons.js file should load successfully, allowing the custom brand icons to be displayed.

Error Details:

Request URL: https://ha.cloudbr34k.xyz/local/custom-brand-icons.js Request Method: GET Status Code: 404 Not Found Referrer Policy: same-origin Cache Consideration: I have attempted to load the page using an incognito window to rule out cache issues, but the issue persists. Double-checked the installation, and the file still cannot be located.

rowser Information:

Browser: Chrome Version 128.0.6613.120 (Official Build) (64-bit) Operating System: Windows 11

elax46 commented 1 month ago

Hi how did you integrate CBI into your instance? I suggest you add it using HACS

cloudbr34k84 commented 1 month ago

Hi how did you integrate CBI into your instance? I suggest you add it using HACS @elax46 I added it via hacs followed the guide, i have added it based on the below

this is also the download path www/community/custom-brand-icons/custom-brand-icons.js frontend: extra_module_url:

first go to settings, dashboard and 3 dots click resorces, add resource

/hacsfiles/custom-brand-icons/custom-brand-icons.js?hacstag=366862031202420 Add this second resource too

/local/community/custom-brand-icons/custom-brand-icons.js

elax46 commented 1 month ago

Hi how did you integrate CBI into your instance? I suggest you add it using HACS @elax46 I added it via hacs followed the guide, i have added it based on the below

this is also the download path www/community/custom-brand-icons/custom-brand-icons.js frontend: extra_module_url: - /local/community/custom-brand-icons/custom-brand-icons.js

first go to settings, dashboard and 3 dots click resorces, add resource

/hacsfiles/custom-brand-icons/custom-brand-icons.js?hacstag=366862031202420 Add this second resource too

/local/community/custom-brand-icons/custom-brand-icons.js

can you check if there is a js file in the specified path /local/community?

cloudbr34k84 commented 1 month ago

Hi how did you integrate CBI into your instance? I suggest you add it using HACS @elax46 I added it via hacs followed the guide, i have added it based on the below

this is also the download path www/community/custom-brand-icons/custom-brand-icons.js frontend: extra_module_url: - /local/community/custom-brand-icons/custom-brand-icons.js

first go to settings, dashboard and 3 dots click resorces, add resource

/hacsfiles/custom-brand-icons/custom-brand-icons.js?hacstag=366862031202420 Add this second resource too

/local/community/custom-brand-icons/custom-brand-icons.js

can you check if there is a js file in the specified path /local/community?

@elax46 This is where the js file is located www/community/custom-brand-icons/custom-brand-icons.js

elax46 commented 1 month ago

the position is correct there shouldn't be any problem

cloudbr34k84 commented 1 month ago

Hmmmm Btw this error is from the Dev console screen under the network tab.

It's not that only hacs integration that is 404

elax46 commented 1 month ago

I checked in my HA instance and I don't have these errors. I suggest you remove all the paths related to CBI and check what happens.

cloudbr34k84 commented 1 month ago

I checked in my HA instance and I don't have these errors. I suggest you remove all the paths related to CBI and check what happens.

Paths?? All resource address?

elax46 commented 1 month ago

I checked in my HA instance and I don't have these errors. I suggest you remove all the paths related to CBI and check what happens.

Paths?? All resource address?

yes you take away the resources and keep only the hacs resource

cloudbr34k84 commented 1 month ago

that seems to have worked :)

elax46 commented 1 month ago

I don't know what it could depend on, honestly I recommend removing CBI and reinstalling it using this link