getsentry/sentry-powershell

PowerShell SDK not sending events unless I include the debug param when running start-sentry

Closed this issue · 2 comments

I am unable to send events to Sentry unless I include the -debug param when running start-sentry.
So this works:

Start-Sentry -Debug -DSN "URL"
"test" | out-sentry

but this will not work:

Start-Sentry -DSN "URL"
"test" | out-sentry

This is happening on macOS and Windows devices running pwsh 7.4 and 7.2. I am able to send an alert using the cli on the same macOS machine.

No verbose errors, I just get the following output:
00000000000000000000000000000000

MacOS

Name                           Value
----                           -----
PSVersion                      7.4.6
PSEdition                      Core
GitCommitId                    7.4.6
OS                             Darwin 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec  6 19:00:33 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T8122
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Windows

PSVersion                      7.2.24
PSEdition                      Core
GitCommitId                    7.2.24
OS                             Microsoft Windows 10.0.17763
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0.}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Running version 0.2.0

Have also experienced the same on Windows machine with PS version 5.1

This is now fixed in just released v0.2.1