소스 검색

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 년 전
부모
커밋
a93da786e4
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)