cozy / cozy-home-v2

This repository was part of CozyV2 which has been deprecated
https://blog.cozycloud.cc/post/2016/11/21/On-the-road-to-Cozy-version-3
GNU Affero General Public License v3.0
94 stars 53 forks source link

"account background saved error" alert box #816

Open Phyks opened 8 years ago

Phyks commented 8 years ago

Hi,

When my computer goes to suspend, upon wakeup, I have the "account background saved error" on my home screen in the cozy tab that I left open.

It seems to be due to some failing AJAX call (https://github.com/cozy/cozy-home/blob/a223a53a59e968bce2b60b8ba7ae621f016fef40/client/app/views/account.coffee#L447), most likely due to the fact that I lost internet connection during suspend.

I am not sure if it is an expected behavior but I think this error message is not really cool for a few reasons. First, that's the only "alert" I have seen through Cozy (but I may have missed others), then it is not localized and the textual content is not really helpful to a non-tech user. Last but not least, as a user, I am unable to know what happened and whether my cozy will be operating fine, especially whether I should reload the page or if it is ok to go on.

Thanks!

jsilvestre commented 8 years ago

Thank you for your feedback. I noticed that on my development environment too, but couldn't manage to reproduce in production.

For me, it occurs when I load the page (a simple F5) after a while.

Phyks commented 8 years ago

It may be linked as when my computer goes to suspend, it will lose wifi and I think a kind of refresh is performed on resume.

However, it's kind of difficult to reproduce, I see it quite a lot, but cannot reproduce it on purpose :/ I'll post updated infos if I manage to find a reproducible way to get it.

Anyways, I am not sure to fully understand the logic behind this code, because I don't see any reasons the "change" event would fire out of nowhere, without doing anything related to backgrounds.

Phyks commented 8 years ago

Ok, so the best way to reproduce it at the moment, although not perfect, is to have a Firefox session with my cozy opened in a tab on my Mac, to shutdown the system checking the "open back all the apps at restart" box, and restart the map. Also, my laptop is connected in wifi (might be important as the connection is a bit delayed after the session opens). This is not really practical, but at least it is a quite reliable way to reproduce :)

Phyks commented 8 years ago

Today, it happened and my background image was not restored (I had a grey background). So it may be linked to background image in the end.