Преглед изворни кода

HUE-1907 [impala] Date result fields are not jsonifiable

Difficult to reproduce/track the root cause.
Might be releated to a funky Chrome
Romain Rigaux пре 11 година
родитељ
комит
a93da78
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      apps/beeswax/src/beeswax/api.py

+ 1 - 1
apps/beeswax/src/beeswax/api.py

@@ -68,7 +68,7 @@ def error_handler(view_fn):
         'message': message,
       }
 
-      if 'database is locked' in message or 'Invalid query handle' in message:
+      if 'database is locked' in message or 'Invalid query handle' in message or 'not JSON serializable' in message:
         response['status'] = 2 # Frontend will not display this type of error
 
       return HttpResponse(json.dumps(response), mimetype="application/json", status=200)