The user list drop error 500
[2024-04-11 14:17:34,182][12008][139690202785344][ERROR][privacyidea.app:1891] Exception on /user/ [GET]
Traceback (most recent call last):
File “/srv/privacyidea/lib/python3.10/site-packages/flask/app.py”, line 2447, in wsgi_app
response = self.full_dispatch_request()
File “/srv/privacyidea/lib/python3.10/site-packages/flask/app.py”, line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File “/srv/privacyidea/lib/python3.10/site-packages/flask/app.py”, line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File “/srv/privacyidea/lib/python3.10/site-packages/flask/_compat.py”, line 39, in reraise
raise value
File “/srv/privacyidea/lib/python3.10/site-packages/flask/app.py”, line 1950, in full_dispatch_request
rv = self.dispatch_request()
File “/srv/privacyidea/lib/python3.10/site-packages/flask/app.py”, line 1936, in dispatch_request
return self.view_functionsrule.endpoint
File “/srv/privacyidea/lib/python3.10/site-packages/privacyidea/api/lib/prepolicy.py”, line 159, in policy_wrapper
return wrapped_function(*args, **kwds)
File “/srv/privacyidea/lib/python3.10/site-packages/privacyidea/api/lib/prepolicy.py”, line 159, in policy_wrapper
return wrapped_function(*args, **kwds)
File “/srv/privacyidea/lib/python3.10/site-packages/privacyidea/api/auth.py”, line 423, in decorated_function
return f(*args, **kwargs)
File “/srv/privacyidea/lib/python3.10/site-packages/privacyidea/lib/event.py”, line 100, in event_wrapper
f_result = func(*args, **kwds)
File “/srv/privacyidea/lib/python3.10/site-packages/privacyidea/api/user.py”, line 114, in get_users
return send_result(users)
File “/srv/privacyidea/lib/python3.10/site-packages/privacyidea/api/lib/utils.py”, line 118, in send_result
return jsonify(prepare_result(obj, rid, details))
File “/srv/privacyidea/lib/python3.10/site-packages/flask/json/init.py”, line 370, in jsonify
dumps(data, indent=indent, separators=separators) + “\n”,
File “/srv/privacyidea/lib/python3.10/site-packages/flask/json/init.py”, line 211, in dumps
rv = _json.dumps(obj, **kwargs)
File “/usr/lib/python3.10/json/init.py”, line 238, in dumps
**kw).encode(obj)
File “/usr/lib/python3.10/json/encoder.py”, line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File “/usr/lib/python3.10/json/encoder.py”, line 257, in iterencode
return _iterencode(o, 0)
File “/srv/privacyidea/lib/python3.10/site-packages/flask/json/init.py”, line 100, in default
return _json.JSONEncoder.default(self, o)
File “/usr/lib/python3.10/json/encoder.py”, line 179, in default
raise TypeError(f’Object of type {o.class.name} ’
TypeError: Object of type bytes is not JSON serializable
Is there any solution?