Browse Source

fix(webhooks): revert using orjson (#71310)

Checking to see if this is the cause of #inc-779. Reverting one of the
files in https://github.com/getsentry/sentry/pull/70574/files that is
related to webhooks
Athena Moghaddam 9 months ago
parent
commit
5176dd8204
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/sentry/api/serializers/models/app_platform_event.py

+ 3 - 4
src/sentry/api/serializers/models/app_platform_event.py

@@ -1,7 +1,7 @@
 from time import time
 from time import time
 from uuid import uuid4
 from uuid import uuid4
 
 
-import orjson
+from sentry.utils import json
 
 
 
 
 class AppPlatformEvent:
 class AppPlatformEvent:
@@ -33,15 +33,14 @@ class AppPlatformEvent:
 
 
     @property
     @property
     def body(self):
     def body(self):
-        return orjson.dumps(
+        return json.dumps(
             {
             {
                 "action": self.action,
                 "action": self.action,
                 "installation": {"uuid": self.install.uuid},
                 "installation": {"uuid": self.install.uuid},
                 "data": self.data,
                 "data": self.data,
                 "actor": self.get_actor(),
                 "actor": self.get_actor(),
             },
             },
-            option=orjson.OPT_UTC_Z,
-        ).decode()
+        )
 
 
     @property
     @property
     def headers(self):
     def headers(self):