mirukana / mirage

A fancy, customizable, keyboard-operable Qt/QML & Python Matrix chat client for encrypted and decentralized communication.
GNU Lesser General Public License v3.0
412 stars 40 forks source link

Sudden 200 matrix error when idle #212

Open samyak-jain opened 3 years ago

samyak-jain commented 3 years ago

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

mirukana commented 3 years ago

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.

zapashcanon commented 3 years ago

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...

mirukana commented 3 years ago

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

zapashcanon commented 3 years ago

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 ?

majoramn commented 3 years ago

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. ><

mirukana commented 3 years ago

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.

zapashcanon commented 3 years ago

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