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

room power-levels should fail gracefully when Synapse not reachable #164

Open
JOJ0 opened this issue Dec 5, 2024 · 0 comments
Open

room power-levels should fail gracefully when Synapse not reachable #164

JOJ0 opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@JOJ0
Copy link
Owner

JOJ0 commented Dec 5, 2024

$ synadm room power-levels
ERROR ConnectionError while querying Synapse: HTTPConnectionPool(host='localhost', port=8008): Max retries exceeded with url: /_synapse/admin/v1/rooms?from=0&limit=10 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10405aa90>: Failed to establish a new connection: [Errno 61] Connection refused'))
...
...

  File "/Users/user/git/synadm/synadm/api.py", line 849, in room_power_levels
    for i, room in enumerate(rooms["rooms"]):
                             ~~~~~^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
@JOJ0 JOJ0 added bug Something isn't working good first issue Good for newcomers labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant