results.webkit.org: 500 errors on API endpoints don't return JSON
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Aug 2019 19:16:02 +0000 (19:16 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Aug 2019 19:16:02 +0000 (19:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=200722

Reviewed by Aakash Jain.

* resultsdbpy/resultsdbpy/controller/api_routes.py:
(APIRoutes.response_500): We should return the response, instead of abort.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248684 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/resultsdbpy/resultsdbpy/controller/api_routes.py

index 62d73bb..459f900 100644 (file)
@@ -1,5 +1,15 @@
 2019-08-14  Jonathan Bedard  <jbedard@apple.com>
 
+        results.webkit.org: 500 errors on API endpoints don't return JSON
+        https://bugs.webkit.org/show_bug.cgi?id=200722
+
+        Reviewed by Aakash Jain.
+
+        * resultsdbpy/resultsdbpy/controller/api_routes.py:
+        (APIRoutes.response_500): We should return the response, instead of abort.
+
+2019-08-14  Jonathan Bedard  <jbedard@apple.com>
+
         results.webkit.org: Don't save configuration multiple times in upload
         https://bugs.webkit.org/show_bug.cgi?id=200719
 
index 854666e..dcebe79 100644 (file)
@@ -85,4 +85,4 @@ class APIRoutes(AuthedBlueprint):
         response = jsonify(status='error', error='Internal Server Error', description=str(error))
         response.status = 'error.Internal Server Error'
         response.status_code = 500
-        abort(response)
+        return response