mirage icon indicating copy to clipboard operation
mirage copied to clipboard

MatrixBadGateway

Open theotheroracle opened this issue 4 years ago • 2 comments

Description

Traceback (most recent call last):
  File "/app/lib/python3.7/site-packages/nio/client/async_client.py", line 956, in sync
    timeout,
  File "qrc:/src/backend/matrix_client.py", line 213, in _send
    raise MatrixError.from_nio(response)
backend.errors.MatrixBadGateway

Your environment

  • flatpak ( compiled manually )

Steps to reproduce

a lot of messages were being received at the time, might have been the cause of it .

theotheroracle avatar Jul 02 '20 11:07 theotheroracle

Need to make nio catch and handle HTTP 5xx errors.

mirukana avatar Jul 03 '20 16:07 mirukana

Probably the same for 408:

Traceback (most recent call last):
  File "qrc:/src/backend/matrix_client.py", line 399, in _start
    await self.sync_task
  File "/usr/lib/python3/dist-packages/nio/client/async_client.py", line 1147, in sync_forever
    await self.run_response_callbacks([await response])
  File "/usr/lib/python3.9/asyncio/tasks.py", line 611, in _wait_for_one
    return f.result()  # May raise f.exception().
  File "/usr/lib/python3/dist-packages/nio/client/async_client.py", line 994, in sync
    response = await self._send(
  File "qrc:/src/backend/matrix_client.py", line 255, in _send
    raise MatrixError.from_nio(response)
backend.errors.MatrixError: (408, None)

Debian packages: Mirage: 0.6.4~dfsg+~hsluv1.0.0-4 nio: 0.15.2-1

JanZerebecki avatar Jan 11 '21 22:01 JanZerebecki