Skip to content
This repository has been archived by the owner on Aug 27, 2018. It is now read-only.

"account background saved error" alert box #816

Open
Phyks opened this issue Sep 23, 2016 · 4 comments
Open

"account background saved error" alert box #816

Phyks opened this issue Sep 23, 2016 · 4 comments
Labels

Comments

@Phyks
Copy link
Contributor

Phyks commented Sep 23, 2016

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
Copy link
Contributor

jsilvestre commented Sep 23, 2016

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.

@jsilvestre jsilvestre added the bug label Sep 23, 2016
@Phyks
Copy link
Contributor Author

Phyks commented Sep 23, 2016

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
Copy link
Contributor Author

Phyks commented Sep 28, 2016

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
Copy link
Contributor Author

Phyks commented Oct 4, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants