zulip-desktop icon indicating copy to clipboard operation
zulip-desktop copied to clipboard

Previous organization which no longer resolves in DNS shows an empty window at startup

Open alexmv opened this issue 3 years ago • 1 comments

Describe the bug

If the user previously had a working Zulip install at https://chat.zulip-nonexistant.org/, but it has since vanished fully form DNS, starting up produces a white window.

The logs do contain:

LOG | 4/26 38:9 |	 Error: https://chat.zulip-nonexistant.org does not appear to be a valid Zulip server. Make sure that
 • You can connect to that URL in a web browser.
 • If you need a proxy to connect to the Internet, that you've configured your proxy in the Network settings.
 • It's a Zulip server. (The oldest supported version is 1.6).
 • The server has a valid certificate.
 • The SSL is correctly configured for the certificate. Check out the SSL troubleshooting guide -
 https://zulip.readthedocs.io/en/stable/production/ssl-certificates.html
    at checkDomain (VM299 domain-util.js:138:15)
    at async Object.updateSavedServer (VM299 domain-util.js:153:31)
    at async VM116 main.js:279:17
    at async Promise.all (index 0)
    at async ServerManagerView.initTabs (VM116 main.js:273:13)
    at async ServerManagerView.init (VM116 main.js:103:9)
    at async VM116 main.js:926:5

...but that is not displayed to the user

To Reproduce

  1. Log into a real Zulip server.
  2. Quit the app.
  3. Edit domain.json (e.g. in ~/Library/Application Support/Zulip/config/domain.json) to point the url field to an invalid domain:
{
    "domains": [
        {
            "icon": "/Users/chmrr/Library/Application Support/Zulip/server-icons/820503988.png",
            "url": "https://chat.zulip-nonexistant.org",
            "alias": "Zulip Community"
        }
    ]
}
  1. Start the app.

Expected behavior

You would see the "network failed" message.

Desktop (please complete the following information):

  • Zulip Desktop Version: 5.9.3

Additional context

Reported here.

alexmv avatar May 26 '22 22:05 alexmv

ran into this when moving from a local installation to a zulip cloud account. Additionaly, uninstalling the desktop client on windows does not remove the previous settings, so reinstalling does not help.

Workaround: clearing out %appdata%\roaming\zulip folder (windows client) was needed to trigger a fresh configuration dialog.

dePoPo avatar Aug 27 '22 05:08 dePoPo

Yeah, same trouble macOS ;( I can't now add, new organizations, neither delete the "faulty" one ;(

hvisage avatar Oct 14 '22 11:10 hvisage

Zulip Desktop 5.9.5 fixes a bug where the app would freeze in this case. It should now display the network error page and otherwise continue working normally.

andersk avatar Feb 07 '23 06:02 andersk