Project

General

Profile

Actions

Bug #42565

closed

mgr/dashboard: "TypeError: Object of Type LazyUUID4 is not JSON serializable"

Added by Ernesto Puerta over 4 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
General - Back-end
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

After Debug mode PR was added, now when an exception is triggered, the error responses from the back-end include a UUID of the request (in order to better match HTTP responses and log traces). In older versions of Cherrypy (like the ones most distros come with), this UUID is not yet implemented, so Debug mode had to provide a work-around for this. That's why there are 2 different implementations for the UUID: the work-around one works, while the native one doesn't. It triggers another exception because of an error when JSON serializing the response.

In order to avoid different code paths for older-newer versions, I'll basically include the same implementation for both.


Files

uuid.png (391 KB) uuid.png Ernesto Puerta, 10/30/2019 12:23 PM
Actions

Also available in: Atom PDF