Updating apps throws errors every time, but still works (25.04.1)

I receive the following error when ever I try to update an app. It looks like I get 2 per app and it doesn’t matter if it is from stable or community. The apps get updated and continue to work, it is just annoying to not be sure if there is something under the hood that is broken.

2025-07-29T19:41:41+02:00 truenas MIDDLEWARE - - [meta sequenceId="12"] [2025/07/29 19:41:41] (ERROR) middlewared.send():54 - Failed to JSON serialize server message: Object of type ValidationErrors is not JSON serializable @cee:{"TNLOG": {"exception": "Traceback (most recent call last):\n  File \"/usr/lib/python3/dist-packages/middlewared/api/base/server/ws_handler/rpc.py\", line 52, in send\n    data_ = json.dumps(data)\n            ^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3/dist-packages/truenas_api_client/ejson.py\", line 110, in dumps\n    return json.dumps(obj, cls=JSONEncoder, **kwargs)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3.11/json/__init__.py\", line 238, in dumps\n    **kw).encode(obj)\n          ^^^^^^^^^^^\n  File \"/usr/lib/python3.11/json/encoder.py\", line 200, in encode\n    chunks = self.iterencode(o, _one_shot=True)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3.11/json/encoder.py\", line 258, in iterencode\n    return _iterencode(o, 0)\n           ^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3/dist-packages/truenas_api_client/ejson.py\", line 61, in default\n    return super(JSONEncoder, self).default(obj)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3.11/json/encoder.py\", line 180, in default\n    raise TypeError(f'Object of type {o.__class__.__name__} '\nTypeError: Object of type ValidationErrors is not JSON serializable", "type": "PYTHON_EXCEPTION", "time": "2025-07-29 17:41:41.946975"}}

What version of TrueNAS are you on?

Oops, missed it in the title

1 Like

25.04.1 (as in the title).