awtrix3 icon indicating copy to clipboard operation
awtrix3 copied to clipboard

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

Open servicemensch opened this issue 2 years ago • 57 comments

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 avatar Oct 20 '23 14:10 servicemensch

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

Blueforcer avatar Oct 20 '23 14:10 Blueforcer

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)

GM-Jokemaster avatar Oct 21 '23 10:10 GM-Jokemaster

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

Blueforcer avatar Oct 25 '23 10:10 Blueforcer

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.

servicemensch avatar Oct 25 '23 10:10 servicemensch

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

GM-Jokemaster avatar Oct 27 '23 08:10 GM-Jokemaster

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

Works on my iPhone tho - IOS 16

Glup3 avatar Dec 05 '23 21:12 Glup3

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?

Anonym-tsk avatar Feb 21 '24 10:02 Anonym-tsk

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..

Blueforcer avatar Feb 21 '24 10:02 Blueforcer

Thats not possible

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

Anonym-tsk avatar Feb 21 '24 10:02 Anonym-tsk

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

Blueforcer avatar Feb 21 '24 10:02 Blueforcer

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

Anonym-tsk avatar Feb 21 '24 11:02 Anonym-tsk

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.

Blueforcer avatar Feb 21 '24 11:02 Blueforcer

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

Anonym-tsk avatar Feb 21 '24 11:02 Anonym-tsk

@Blueforcer what do you think?

Anonym-tsk avatar Feb 21 '24 12:02 Anonym-tsk

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

Anonym-tsk avatar Feb 29 '24 13:02 Anonym-tsk

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

Blueforcer avatar Feb 29 '24 13:02 Blueforcer

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).

Anonym-tsk avatar Feb 29 '24 13:02 Anonym-tsk

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

Blueforcer avatar Feb 29 '24 13:02 Blueforcer

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

Just use VPN

perseus-me avatar Mar 07 '24 11:03 perseus-me

Same problem, do you have a fix ?

image

adrienrichmond avatar Apr 22 '24 09:04 adrienrichmond

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

Anonym-tsk avatar Apr 22 '24 15:04 Anonym-tsk

Try this firmware.zip

Blueforcer avatar Apr 22 '24 15:04 Blueforcer

Try this firmware.zip

Hey, not working

adrienrichmond avatar Apr 23 '24 11:04 adrienrichmond

Try this firmware.zip

Hey, not working

I have the same problem, firmware update is unsuccessful

pacroy9 avatar Apr 23 '24 16:04 pacroy9

@Anonym-tsk I implemented your changes. Please check

Blueforcer avatar Apr 23 '24 16:04 Blueforcer

@Anonym-tsk I implemented your changes. Please check

Where to get the binary?

Anonym-tsk avatar Apr 23 '24 16:04 Anonym-tsk

@Anonym-tsk I implemented your changes. Please check

Where to get the binary?

3 posts above

Blueforcer avatar Apr 23 '24 16:04 Blueforcer

I implemented your changes. Please check

How to do clean install? Now I have modified json. What I need to do? Reset before flash?

Anonym-tsk avatar Apr 23 '24 16:04 Anonym-tsk

Just upload the bin file in the update tab of awtrix. Maybe it's necessary to delete the DoNotTouch.json and reboot awtrix. But not sure right now.

Blueforcer avatar Apr 23 '24 16:04 Blueforcer

Hey Blueforcer, do you have a solution to modify bin files ? thx!

adrienrichmond avatar Apr 23 '24 16:04 adrienrichmond