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

Reloading page makes it blank after some secs #573

Closed
yuya-oc opened this issue Aug 22, 2017 · 7 comments
Closed

Reloading page makes it blank after some secs #573

yuya-oc opened this issue Aug 22, 2017 · 7 comments

Comments

@yuya-oc
Copy link
Contributor

yuya-oc commented Aug 22, 2017

From @S6066 at mattermost/mattermost#7242

Summary
Sometimes I have a DNS error, or a Network Changed one, and I have to reload (Ctrl + R) the page.
When doing that, after some seconds the page becomes blank one second and reload again

https://youtu.be/pyeaz3hp5b4

Steps to reproduce

  • Operating System: Windows 10 x64
  • Mattermost Desktop App version: 3.7.0
  • Mattermost Server version: 4.1.0
  • Clear steps to reproduce the issue
    1. Make a DNS error or a Network Changed one. (More concrete step is needed to reproduce the situation.)
    2. Reload the page with Ctrl+R.
    3. The page reloads again after some seconds.

Expected behavior
The reloading should happen only once.

Observed behavior
The page reloads twice.

Possible fixes
?

@yuya-oc
Copy link
Contributor Author

yuya-oc commented Aug 22, 2017

@S6066 Please let me confirm. The application should automatically reload the page when the app has become online from offline. Do you need to press Ctrl+R when you meet DNS or Network Changed error?

@Apjue
Copy link

Apjue commented Aug 22, 2017

@yuya-oc I do not need to press Ctrl+R, but I don't like waiting so I usually press it.
Operating System: Windows 10 x64 (16xx, probably 1607)
To reproduce the issue, Exit mattermost if opened, disable wifi, start Mattermost, enable wifi, press Ctrl+R
Edit: When waiting instead of pressing Ctrl+R, the bug doesn't occur

@yuya-oc
Copy link
Contributor Author

yuya-oc commented Aug 22, 2017

The problem reproduced for me on Windows 10. The error is ERR_NAME_NOT_RESOLVED (-105). When the error is ERR_INTERNET_DISCONNECTED (-106), the app properly reloads the page automatically.

The app automatically reloads the page every 30 seconds as another mechanism to repair the error. So I feel it's wrongly working when the page is manually reloaded.

@jasonblais
Copy link
Contributor

jasonblais commented Aug 22, 2017

The app automatically reloads the page every 30 seconds as another mechanism to repair the error.

@yuya-oc Do you mean the error clears after 30 seconds, or that it should clear but for some reason it doesn't.

@yuya-oc
Copy link
Contributor Author

yuya-oc commented Aug 22, 2017

@jasonblais Yes, if the error is gone in that time, the user will see correct reloaded webapp. However I think the automatic reloading is not canceled when the page is manually reloaded. So the page reloads again after Ctrl+R is done.

@jasonblais
Copy link
Contributor

Okay cool. Do you have an idea on how much work it is to fix? Wondering if we should fix it in 3.8

@yuya-oc
Copy link
Contributor Author

yuya-oc commented Aug 23, 2017

It looks easy. I will test my fix tomorrow.

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

No branches or pull requests

3 participants