We got a small federation running for Raiden Network, and because of some disk full issue, one of the servers crashed. Following it, the healthy ones started returning some unexpected responses for interactions with users on the healthy ones.
E.g. trying to invite an user in the unhealthy server to a room in the healthy one, the invite request returned:
<Response [429]>
{"errcode":"M_UNKNOWN","error":"Unknown Status"}
but from
|
try: |
|
errordata = json.loads(response.json()['error']) |
|
waittime = errordata['retry_after_ms'] / 1000 |
|
except KeyError: |
|
pass |
if the
error isn't a json,
json.JSONDecodeError will be raised.
Quick fix is to add
json.JSONDecodeError to the handled errors in
L734
Full stack traces and context can be found in
raiden-network/raiden#2603
We got a small federation running for Raiden Network, and because of some disk full issue, one of the servers crashed. Following it, the healthy ones started returning some unexpected responses for interactions with users on the healthy ones.
E.g. trying to invite an user in the unhealthy server to a room in the healthy one, the invite request returned:
but from
matrix-python-sdk/matrix_client/api.py
Lines 731 to 735 in e366d52
if the
errorisn't a json,json.JSONDecodeErrorwill be raised.Quick fix is to add
json.JSONDecodeErrorto the handled errors in L734Full stack traces and context can be found in raiden-network/raiden#2603