Skip to content

Commit 5176dd8

Browse files
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
1 parent 8b5533e commit 5176dd8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/sentry/api/serializers/models/app_platform_event.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from time import time
22
from uuid import uuid4
33

4-
import orjson
4+
from sentry.utils import json
55

66

77
class AppPlatformEvent:
@@ -33,15 +33,14 @@ def get_actor(self):
3333

3434
@property
3535
def body(self):
36-
return orjson.dumps(
36+
return json.dumps(
3737
{
3838
"action": self.action,
3939
"installation": {"uuid": self.install.uuid},
4040
"data": self.data,
4141
"actor": self.get_actor(),
4242
},
43-
option=orjson.OPT_UTC_Z,
44-
).decode()
43+
)
4544

4645
@property
4746
def headers(self):

0 commit comments

Comments
 (0)