mirage icon indicating copy to clipboard operation
mirage copied to clipboard

Sudden 200 matrix error when idle

Open samyak-jain opened this issue 3 years ago • 7 comments

Description

Mirage was simply running in the foreground and the following error popped up.

(200, None)

Traceback (most recent call last):
  File "qrc:/src/backend/matrix_client.py", line 410, in _start
    await self.sync_task
  File "/usr/lib/python3.9/site-packages/nio/client/async_client.py", line 1181, in sync_forever
    await self.run_response_callbacks([await response])
  File "/usr/lib/python3.9/asyncio/tasks.py", line 614, in _wait_for_one
    return f.result()  # May raise f.exception().
  File "/usr/lib/python3.9/site-packages/nio/client/async_client.py", line 1028, in sync
    response = await self._send(
  File "qrc:/src/backend/matrix_client.py", line 266, in _send
    raise MatrixError.from_nio(response)
backend.errors.MatrixError: (200, None)

matrix-error

Your environment

  • OS or distribution (e.g. Arch Linux, macOS 10.15, Windows 7...): 5.11.12-arch1-1
  • Architecture (e.g. x86 64bit): x86_64
  • For Linux users: your desktop environment or window manager (e.g. GNOME 3.34 Wayland, i3 4.17, etc): bspwm
  • How did you install Mirage? (e.g. manual build, distribution repository, AppImage, Flatpak...): AUR
  • For manual installations: your Qt version
  • For manual installations: your Python version

samyak-jain avatar Apr 13 '21 05:04 samyak-jain

Some details needed to identify the problem were lacking from the error popup in the version you ran. Please update to the last dev commit (the mirage -git AUR package should have it) and post the error if this occurs again.

mirukana avatar Jun 30 '21 21:06 mirukana

I built mirage from source, and here's what I get:

(200, None)

Traceback (most recent call last):
  File "src/backend/matrix_client.py", line 410, in _start
    await self.sync_task
  File "/home/zapashcanon/.local/lib/python3.9/site-packages/nio/client/async_client.py", line 1155, in sync_forever
    sync_response = await self.sync(use_timeout, use_filter, since, full_state, presence)
  File "/home/zapashcanon/.local/lib/python3.9/site-packages/nio/client/async_client.py", line 1028, in sync
    response = await self._send(
  File "src/backend/matrix_client.py", line 266, in _send
    raise MatrixError.from_nio(response)
backend.errors.MatrixError: (200, None)

But that doesn't seem to bring much more information, so I'm wondering if I did something wrong...

zapashcanon avatar Jul 14 '21 10:07 zapashcanon

Make sure you're on the right branch, run git checkout dev before building.

mirukana avatar Jul 14 '21 14:07 mirukana

Ah indeed, that whas it. Thanks. Now I get a huge error, here's the beginning:

MatrixError: (200, None, 'unknown error', '{"next_batch":"

But what comes after is full of personal information that I don't want to share here and it's so huge that I don't want to filter it. Could you contact me and I'll send you the file ?

zapashcanon avatar Jul 16 '21 15:07 zapashcanon

I also have this issue and it prevents the affected account's rooms from even loading (matrix.org and chatcloud.net). It has been a pain, because I made that chatcloud account to deal with the first matrix.org account breaking. Don't feel like making anymore new accounts after the second time, so I have to stick with talking to my friend from Element mobile. ><

majoramn avatar Jul 18 '21 05:07 majoramn

This should fixed by https://github.com/poljar/matrix-nio/commit/1f17a20ca818c1c3a0c2e75fdc64da9c629eb5f9. This commit will be part of matrix-nio 0.18.5, which is to be officially released before tomorrow. It already is included in the new mirage 0.7.2 appimage and flatpaks. For manual installs, make sure to run pip3 install --user -Ur requirements.txt again before rebuilding.

mirukana avatar Jul 26 '21 08:07 mirukana

@mirukana this is fixed for me ! Thanks. :-)

zapashcanon avatar Jul 26 '21 13:07 zapashcanon