- 
                Notifications
    You must be signed in to change notification settings 
- Fork 121
Open
Description
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
matrix-python-sdk/matrix_client/api.py
Lines 731 to 735 in e366d52
| 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 L734Full stack traces and context can be found in raiden-network/raiden#2603
Metadata
Metadata
Assignees
Labels
No labels