Skip to content

Commit 8fcba97

Browse files
committed
fix: drop JSON conversion for event bodies
1 parent f2f33e2 commit 8fcba97

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

sentry-cli/integration-test/action.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class InvokeSentryResult
5353
if ($eventId -and $ids -notcontains $eventId)
5454
{
5555
$body = $lines | Select-Object -Skip 1 | Where-Object {
56-
($_ | ConvertFrom-Json | Select-Object -ExpandProperty event_id -ErrorAction SilentlyContinue) -eq $eventId
56+
$_ -like "*`"event_id`":`"$eventId`"*"
5757
} | Select-Object -First 1
5858
if ($body)
5959
{

sentry-cli/integration-test/tests/action.Tests.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,15 @@ helloworld
108108
'@
109109
Invoke-WebRequest -Uri "$url/api/0/envelope" -Method Post -Body @'
110110
{"event_id":"9ec79c33ec9942ab8353589fcb2e04dc","dsn":"https://e12d836b15bb49d7bbf99e64295d995b:@sentry.io/42","sent_at":"2025-11-20T03:53:38.929Z"}
111+
{"type":"attachment","length":10,"content_type":"text/plain","filename":"hello.txt"}
112+
\xef\xbb\xbfHello\r\n
111113
{"type":"event","length":47,"content_type":"application/json"}
112114
{"event_id":"9ec79c33ec9942ab8353589fcb2e04dc"}
113115
'@
114116
Invoke-WebRequest -Uri "$url/api/0/envelope" -Method Post -Body @'
115117
{"event_id":"9ec79c33ec9942ab8353589fcb2e04dc","dsn":"https://e12d836b15bb49d7bbf99e64295d995b:@sentry.io/42","sent_at":"2025-11-20T03:53:41.505Z"}
118+
{"type":"attachment","length":10,"content_type":"text/plain","filename":"hello.txt"}
119+
\xef\xbb\xbfHello\r\n
116120
{"type":"event","length":47,"content_type":"application/json"}
117121
{"event_id":"9ec79c33ec9942ab8353589fcb2e04dc"}
118122
'@

0 commit comments

Comments
 (0)