[BUG] Some icon could not be downloaded "This ID doesnt exist"
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
I tested all 3 and it works fine. Try clearing your browsers cache.
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)
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
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.
Retryed it with Edge (Chromium) did do the trick (my Firefox doesn't) Ty ! From my Point /closed
Hello, got the same issue. Tried on MacOS with Firefox, Arc, Chrome & Brave.
Works on my iPhone tho - IOS 16
Please reopen this issue
There is problem with corsproxy.io. Maybe it's possible not to use this proxy and try to load icons directly from lametric?
Please reopen this issue
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..
Thats not possible
Just use fetch with {mode: 'no-cors'}, it works. I can't find source of awtrix web, only compiled js.
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
I don't know the reason, but my ip is blocked on corsproxy. According to this issue, i'm not alone.
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.
So, i changed function downloadLametricImage in DoNotTouch.json and now it works without proxy. Please try this solution.
@Blueforcer what do you think?
@Blueforcer Have you tested my solution? Maybe we can add it to the firmware and get rid of the proxy?
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
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).
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
I don't know the reason, but my ip is blocked on corsproxy. According to this issue, i'm not alone.
Just use VPN
Same problem, do you have a fix ?
Fix is here, but @Blueforcer doesn't merge it.
Try this firmware.zip
@Anonym-tsk I implemented your changes. Please check
@Anonym-tsk I implemented your changes. Please check
Where to get the binary?
@Anonym-tsk I implemented your changes. Please check
Where to get the binary?
3 posts above
I implemented your changes. Please check
How to do clean install? Now I have modified json. What I need to do? Reset before flash?
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.
Hey Blueforcer, do you have a solution to modify bin files ? thx!
There is problem with corsproxy.io. Maybe it's possible not to use this proxy and try to load icons directly from lametric?