Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Some icon could not be downloaded "This ID doesnt exist" #362

Open
servicemensch opened this issue Oct 20, 2023 · 57 comments
Open

[BUG] Some icon could not be downloaded "This ID doesnt exist" #362

servicemensch opened this issue Oct 20, 2023 · 57 comments
Labels
bug Something isn't working

Comments

@servicemensch
Copy link

Bug report

Describe the bug

Some LaMetric icons could not be downloaded, even if preview is working

Additional information

  • Devices involved:
    • Model: Ulanzi Awtrix Smart Pixel Clock 2882 (TC001)
    • AWTRIX-LIGHT version: 0.88

To Reproduce

Go to web interface / icons
enter icon ID 6427, or 160 or 72
click preview
click download

Expected behavior

icon should be downloaded to local storage, but this is not working for every icon in lametric database

Error message

Error: This ID doesnt exist

@servicemensch servicemensch added the bug Something isn't working label Oct 20, 2023
@Blueforcer
Copy link
Owner

I tested all 3 and it works fine. Try clearing your browsers cache.

@GM-Jokemaster
Copy link

GM-Jokemaster commented Oct 21, 2023

Same here 0.90 on 2 new Ulanzis.
Tryed 4 different browsers same result = This ID does not exist.
Download/Save of the Preview from the shown Preview as Animated gif works. (Right click Preview Picture save to)
Then i have to use the Files tab and upload manual. (If i klick ICONS first the folder icon shows as open wihout files (First time use its ok). The Path in the top does not change to ICONS main path.

If i choose manual edit the path to /ICONS/yxz.gif the first time with no files in ICONS AWTRIX shows error. (can't reproduce)
I now klick an icon under ICONS and the path changes correctly.
So upload in the root path works after that i have to right click move then enter /ICONS/yxz.gif it moves finaly to ICONS.

Static Pictures xyz.png saved from Preview Page do not work an need to be convertet to yxz.jpg

Hope that helps.

Mayby only on first time flashed Upanzis ? (I have 2 with same results)

@Blueforcer
Copy link
Owner

Blueforcer commented Oct 25, 2023

Sorry i cant reproduce it.
It works for all other users without issues. It need to be something on your side wich blocks the download. PiHole, any other blocker or something like this, maybe also your country. i dont know. sorry

@servicemensch
Copy link
Author

Tested it by accessing from a different device (iPAd instead of Windows computer) to the display: Icon download successful. So the browser/device you are accessing the web interface matters in some cases. Anyhow all other icons were downloaded from the affected windows machine.

@GM-Jokemaster
Copy link

Retryed it with Edge (Chromium) did do the trick (my Firefox doesn't)
Ty !
From my Point /closed

@Glup3
Copy link

Glup3 commented Dec 5, 2023

Hello, got the same issue.
Tried on MacOS with Firefox, Arc, Chrome & Brave.

Works on my iPhone tho - IOS 16

@Anonym-tsk
Copy link

Please reopen this issue
image
There is problem with corsproxy.io. Maybe it's possible not to use this proxy and try to load icons directly from lametric?

@Blueforcer
Copy link
Owner

Please reopen this issue image There is problem with corsproxy.io. Maybe it's possible not to use this proxy and try to load icons directly from lametric?

Thats not possible, because your browser downloads the icon, not the ESP itself. Im using it as workaround to not getting a CORS violation. dont know why youre getting one..

@Anonym-tsk
Copy link

Thats not possible

Just use fetch with {mode: 'no-cors'}, it works.
I can't find source of awtrix web, only compiled js.

@Blueforcer
Copy link
Owner

Blueforcer commented Feb 21, 2024

do you think I haven't tried it? Most servers already ignore it, including lametric..

After hours of testing different options this was the way to go, and it works for thousands of users.

You can also upload the icons manually with the file manager

@Anonym-tsk
Copy link

image
I don't know the reason, but my ip is blocked on corsproxy. According to this issue, i'm not alone.

@Blueforcer
Copy link
Owner

image
I don't know the reason, but my ip is blocked on corsproxy. According to this issue, i'm not alone.

Not really. The root issue from the other users was the browser not corsproxy, maybe a browser extension.
You have a different issue, wich of course I unfortunately unable to solve.

@Anonym-tsk
Copy link

So, i changed function downloadLametricImage in DoNotTouch.json and now it works without proxy. Please try this solution.
image

@Anonym-tsk
Copy link

@Blueforcer what do you think?

@Anonym-tsk
Copy link

@Blueforcer Have you tested my solution? Maybe we can add it to the firmware and get rid of the proxy?

@Blueforcer
Copy link
Owner

Blueforcer commented Feb 29, 2024

Not yet, im not at home this week.

But awtrix doesn't contain a Proxy . A Proxy usually sits in front of the awtrix to access it via https from the outside.

But I don't use any of this, I need to compile it and let it test from my community on discord

@Anonym-tsk
Copy link

But awtrix doesn't contain a Proxy . A Proxy usually sits in front of the awtrix to access it via https from the outside.

Yes I understand this.
But using an external proxy is not very secure (we can’t trust its creators 100%) and is unstable (it doesn’t work for me).

@Blueforcer
Copy link
Owner

But using an external proxy is not very secure (we can’t trust its creators 100%) and is unstable (it doesn’t work for me).

That is up to the users

@rndev-io
Copy link

rndev-io commented Mar 7, 2024

I don't know the reason, but my ip is blocked on corsproxy. According to this issue, i'm not alone.

Just use VPN

@adrienrichmond
Copy link

Same problem, do you have a fix ?

image

@Anonym-tsk
Copy link

Fix is here, but @Blueforcer doesn't merge it.

@Blueforcer
Copy link
Owner

Try this
firmware.zip

@adrienrichmond
Copy link

Try this firmware.zip

Hey, not working

@pacroy9
Copy link

pacroy9 commented Apr 23, 2024

Try this firmware.zip

Hey, not working

I have the same problem, firmware update is unsuccessful

@Blueforcer
Copy link
Owner

@Anonym-tsk I implemented your changes. Please check

@Anonym-tsk
Copy link

@Anonym-tsk I implemented your changes. Please check

Where to get the binary?

@adrienrichmond
Copy link

Hello, j'ai flasher le firmware bin mais ceci ne fonctionne toujours pas merci!

@Anonym-tsk
Copy link

Anonym-tsk commented Apr 24, 2024

Try this
firmware.zip

It works, but (!):
You need remove file DoNotTouch.json from filesystem after update and restart awtrix.
Without removing i have old file and the fix isn't applyed.

@Anonym-tsk
Copy link

@pacroy9 @adrienrichmond try this please

@adrienrichmond
Copy link

Try this
firmware.zip

It works, but (!): You need remove file DoNotTouch.json from filesystem after update and restart awtrix. Without removing i have old file and the fix isn't applyed.

It's working, thank you very much bro :)

@Anonym-tsk
Copy link

Try this
firmware.zip

Something is wrong with this firmware. I get unexpected device reboots from time to time.

@pacroy9
Copy link

pacroy9 commented Apr 25, 2024

@pacroy9 @adrienrichmond try this please

This firmware update and the deletion of the file solved the problem. Many thanks for the fix.

@Schlicki
Copy link

Does not work for me. Got the modified firmware and deleted the "do not touch" but still get the error when trying to download any ID.

@xbmcnut
Copy link

xbmcnut commented May 2, 2024

Just got my first TC001 and love it but have the same issue. Device is running 0.96 and I keep getting the This ID doesnt exist error when trying to download icons. Tried the firmware file listed in the various threads and deleted the /DoNotTouch.json file but then I lost access to the device on my network even though the device told me it had a network IP address (and the AP was off). Re-flashed to get it back online but now stuck without icons again. Tried FF, Edge and Chrome.

EDIT. Tried again with the new firmware & removing the json file and while I still have access now, still get the icon error.

@xbmcnut
Copy link

xbmcnut commented May 2, 2024

UPDATE: Used the reset pin on the back after updating and removing the /DoNotTouch.json file and now it works! 🎉

@rtrive
Copy link

rtrive commented May 4, 2024

Try this
firmware.zip

It works, but (!): You need remove file DoNotTouch.json from filesystem after update and restart awtrix. Without removing i have old file and the fix isn't applyed.

Confirm it works. Thanks

@tebald1
Copy link

tebald1 commented May 15, 2024

Try this firmware.zip

Worked for me thx

@serfin64
Copy link

Manually transferred the file with the icon to the Icons folder
Icons_2

I call icons to appear on the watch - the watch reboots

TEST-Notify

Displaying Effects and messages on the watch - works

@Blueforcer
Copy link
Owner

Blueforcer commented May 16, 2024

This icon preview doenst look like a 8x8 GIF.
You cannot jsut download a png from the webpage and rename it to a gif

@serfin64
Copy link

Icon - *.gif.
The clock is displayed as an animation in the web interface

YouCut_20240517_102556016.mp4

@Blueforcer
Copy link
Owner

Blueforcer commented May 17, 2024

A webpage can render everything, it has nothing to to with the matrix renderer.
But again, its not an 8x8 icon. You copied the gif from a website wich is way bigger.
8x8 Icons doesnt have a black border nor a grid in the preview.
it looks like this
image

@rolfvreijdenberger
Copy link

adding some information here: I have the same issue, but this is caused by my pfsense distribution using pfblockerng (domain blacklist). Whitelisting corsproxy.io solves the issue.
Keep in mind, that this domain corsproxy.io is being flagged as malware by opensource blocklists.
image

@carltonwb
Copy link

carltonwb commented Sep 22, 2024

Pardon my ignorance. I am a new user and am running into the same or at least similar problem.
Can someone please explain how to use the firmware.zip file and also where I will find the DoNotTouch.json file as well.
Also I am using PiHole. What site do I need to Whitelist.
Thanks

@captn3m0
Copy link

fwiw, corsproxy.io is entirely blocked within India (by corsproxy themselves).

curl -i "https://corsproxy.io/?https://developer.lametric.com/content/apps/icon_thumbs/15974"
HTTP/2 403
date: Wed, 20 Nov 2024 19:10:03 GMT
content-type: application/json
content-length: 123
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=ssAX%2BqPRdfXHnyQUZwDdtuHbwd5kpvNhGWsXCsQsoZ1qUjtxSc30fJ1YN7cqasmyuFM%2Fm4JLOSw7WmwN7WunABxDg3fd%2BQ%2BGhiRNHBxsZmZEZ8dr%2FyU5LelqxJAkGQ%3D%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
strict-transport-security: max-age=2592000; includeSubDomains; preload
x-content-type-options: nosniff
server: cloudflare
cf-ray: 8e5abce69d538025-MAA
server-timing: cfL4;desc="?proto=TCP&rtt=8131&sent=5&recv=7&lost=0&retrans=0&sent_bytes=3395&recv_bytes=767&delivery_rate=268481&cwnd=251&unsent_bytes=0&cid=1ba05238f4a6158f&ts=22&x=0"

{
  "error":{
    "code":403,
    "message":"Country blocked! Your country is blocked from accessing this ressource!"
  }
}

While the preview works, the download doesn't. Would be nice if the corsproxy was configurable.

@Blueforcer
Copy link
Owner

fwiw, corsproxy.io is entirely blocked within India (by corsproxy themselves).

Please try the firmware some posts above.

@tobydarkh
Copy link

fwiw, corsproxy.io is entirely blocked within India (by corsproxy themselves).

Please try the firmware some posts above.

Have the same error but with the firmware from the post...

@Blueforcer
Copy link
Owner

fwiw, corsproxy.io is entirely blocked within India (by corsproxy themselves).

Please try the firmware some posts above.

Have the same error but with the firmware from the post...

clear your browsers cache, otherwise have a look at the browsers developer console log

@tobydarkh
Copy link

fwiw, corsproxy.io is entirely blocked within India (by corsproxy themselves).

Please try the firmware some posts above.

Have the same error but with the firmware from the post...

clear your browsers cache, otherwise have a look at the browsers developer console log

Have clear the cache, but same erro:
https://images.tobydarkh.com/2024/12/chrome_Tz9kdVquH4.png

https://images.tobydarkh.com/2024/12/chrome_9VqHQCep5Y.png

@Blueforcer
Copy link
Owner

That's not the firmware I mentioned in this thread. This doesn't use corsproxy.

@Elitehoernchen
Copy link

test firmware is working for me with that fix :)

@Blueforcer
Copy link
Owner

Thx for the feedback. I will release the firmware the next days

@snoopy12345
Copy link

Firmware solves the icon issue, but the Ulanzi reboots randomly from time to time. Something is wrong here.

Blueforcer added a commit that referenced this issue Dec 24, 2024
- Implemented a new SSL certificate for the on-device update function. closes #525
- Resolved an issue causing the integrated icon downloader to malfunction in certain countries. closes #537 #362 #644 #642
- Added support for the Polish language by converting Polish characters to their ASCII equivalents
- MQTT Placeholders in Custom Apps
- Option to set the bar backgroundcolor in the bar drawing function.  closes #577
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests