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

Homeserver list screen glitches and shows infinite spinner when publiclist.anchel.nl is down #262

Open
bbhtt opened this issue Sep 26, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@bbhtt
Copy link

bbhtt commented Sep 26, 2021

Description

publiclist.anchel.nl seems to be down at the moment, I assume the same will happen if it is blocked or fails to resolve (dns blocklist, firewall etc.). In this situation the homeserver list screen of Mirage glitches and shows an infinite spinner which is visually confusing. Along with that, it creates endless output on terminal:

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "qrc:/src/backend/qml_bridge.py", line 91, in on_done
    result = future.result()
  File "/home/user/Downloads/squashfs-root/usr/lib/python3.9/concurrent/futures/_base.py", line 438, in result
    return self.__get_result()
  File "/home/user/Downloads/squashfs-root/usr/lib/python3.9/concurrent/futures/_base.py", line 390, in __get_result
    raise self._exception
  File "qrc:/src/backend/backend.py", line 555, in fetch_homeservers
    response = await session.get(api_list)
  File "/home/user/Downloads/squashfs-root/usr/lib/python3.9/site-packages/aiohttp/client.py", line 520, in _request
    conn = await self._connector.connect(
  File "/home/user/Downloads/squashfs-root/usr/lib/python3.9/site-packages/nio/client/async_client.py", line 244, in connect_wrapper
    connection = await type(self).connect(self, *args, **kwargs)
  File "/home/user/Downloads/squashfs-root/usr/lib/python3.9/site-packages/aiohttp/connector.py", line 535, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/home/user/Downloads/squashfs-root/usr/lib/python3.9/site-packages/aiohttp/connector.py", line 892, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/home/user/Downloads/squashfs-root/usr/lib/python3.9/site-packages/aiohttp/connector.py", line 1011, in _create_direct_connection
    raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host publiclist.anchel.nl:443 ssl:default [Name or service not known]

Your environment

  • OS or distribution: Arch Linux
  • Architecture: 64bit
  • DE: GNOME/Wayland
  • Installation method: AppImage

Steps to reproduce

  1. Have publiclist.anchel.nl down or blocked
  2. Launch Mirage

Proposed Solution

Show a user facing error that it is blocked and/or 1) retry with a timeout or 2) a button to retry.

Edit. The domain was probably taken down sometime after the issue was posted.

@bbhtt bbhtt added the bug Something isn't working label Sep 26, 2021
@ghost
Copy link

ghost commented Jan 6, 2022

publiclist.anchel.nl seems to not exist as a domain name?

@MRAAGH
Copy link
Contributor

MRAAGH commented Jan 16, 2022

We need to find an equivalent Matrix server list. It needs to have an API, not just a web page

@MRAAGH
Copy link
Contributor

MRAAGH commented Jan 16, 2022

Actually, this is related or duplicate of #249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants