You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if request.method == 'POST' and isinstance(request.json, JussiJSONRPCRequest):
will, in some circumstances produce this error:
{
"event": "finalize_jussi error",
"logger": "jussi.middlewares.jussi",
"level": "warning",
"exception": "Traceback (most recent call last):\n File \"/app/.venv/lib/python3.6/site-packages/sanic/request.py\", line 89, in load_json\n self.parsed_json = loads(self.body)\nValueError: Expected object or value\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/app/jussi/middlewares/jussi.py\", line 56, in finalize_jussi_response\n if request.method == POST and isinstance(request.json, JussiJSONRPCRequest):\n File \"/app/.venv/lib/python3.6/site-packages/sanic/request.py\", line 83, in json\nself.load_json()\n File \"/app/.venv/lib/python3.6/site-packages/sanic/request.py\", line 93, in load_json\n raise InvalidUsage(\"Failed when parsing body as json\")\nsanic.exceptions.InvalidUsage: Failed when parsing body as json"
}
The text was updated successfully, but these errors were encountered:
if request.method == 'POST' and isinstance(request.json, JussiJSONRPCRequest):
will, in some circumstances produce this error:
The text was updated successfully, but these errors were encountered: