-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Environment
MacOS, Windows 11
Sentry 0.3.0
PSVersion 7.5.2
PSEdition Core
GitCommitId 7.5.2
OS Darwin 24.6.0 Darwin Kernel Version 24.6.0: Mon Jul 14 11:29:54 PDT 2025; root:xnu-11417.140.69~1/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
Steps to Reproduce
I created a new sentry project. I am trying to send a test event to it with a simple "test" | Out-Sentry
and it appears to work but I never get anything in Sentry. Starting Sentry in -Debug
I see the following error:
WARNING: [Sentry] Failed to create a PowerShell-specific synchronous transport
ErrorRecord : The property 'ProcessEnvelope' cannot be found on this object. Verify that the property exists and can be set.
WasThrownFromThrowStatement : False
TargetSite : Void CheckActionPreference(System.Management.Automation.Language.FunctionContext, System.Exception)
Message : The property 'ProcessEnvelope' cannot be found on this object. Verify that the property exists and can be set.
Data : {[System.Management.Automation.Interpreter.InterpretedFrameInfo, System.Management.Automation.Interpreter.InterpretedFrameInfo[]]}
InnerException :
HelpLink :
Source : System.Management.Automation
HResult : -2146233087
StackTrace : at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
WARNING: [Sentry] Failed to create a PowerShell-specific synchronous worker
ErrorRecord : You cannot call a method on a null-valued expression.
WasThrownFromThrowStatement : False
TargetSite : Void CheckActionPreference(System.Management.Automation.Language.FunctionContext, System.Exception)
Message : You cannot call a method on a null-valued expression.
Data : {[System.Management.Automation.Interpreter.InterpretedFrameInfo, System.Management.Automation.Interpreter.InterpretedFrameInfo[]]}
InnerException :
HelpLink :
Source : System.Management.Automation
HResult : -2146233087
StackTrace : at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)
at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)
at System.Management.Automation.CommandProcessorBase.Complete()
Sending an event to Sentry with verbose output I see the following:
DEBUG: [Sentry] Creating the Dynamic Sampling Context from the Propagation Context
VERBOSE: [Sentry] Capturing event.
DEBUG: [Sentry] Running processor on exception: Test error
DEBUG: [Sentry] Creating SentryStackTrace. isCurrentStackTrace: False.
DEBUG: [Sentry] Created DebugStackTrace with 0 frames.
DEBUG: [Sentry] Running main event processor on: Event aa9cd69ecae148c08592fbcc11e54d52
DEBUG: [Sentry] Creating SentryStackTrace. isCurrentStackTrace: True.
DEBUG: [Sentry] Skipping initial stack frame 'Sentry.Extensibility.SentryStackTraceFactory, Sentry, Version=5.4.0.0, Culture=neutral, PublicKeyToken=fba2ec45388e2af0'
DEBUG: [Sentry] Skipping initial stack frame 'Sentry.Internal.MainSentryEventProcessor, Sentry, Version=5.4.0.0, Culture=neutral, PublicKeyToken=fba2ec45388e2af0'
DEBUG: [Sentry] Skipping initial stack frame 'Sentry.Extensibility.ISentryEventProcessorExtensions, Sentry, Version=5.4.0.0, Culture=neutral, PublicKeyToken=fba2ec45388e2af0'
DEBUG: [Sentry] Skipping initial stack frame 'Sentry.SentryClient, Sentry, Version=5.4.0.0, Culture=neutral, PublicKeyToken=fba2ec45388e2af0'
DEBUG: [Sentry] Skipping initial stack frame 'Sentry.SentryClient, Sentry, Version=5.4.0.0, Culture=neutral, PublicKeyToken=fba2ec45388e2af0'
DEBUG: [Sentry] Skipping initial stack frame 'Sentry.Internal.Hub, Sentry, Version=5.4.0.0, Culture=neutral, PublicKeyToken=fba2ec45388e2af0'
DEBUG: [Sentry] Skipping debug image for module '<In Memory Module>' because assembly wasn't found: ''
DEBUG: [Sentry] Got debug image for 'System.Management.Automation.dll' having Debug ID: cc3256d0-a62a-4021-a05e-c17d09b86135-aff41f99
DEBUG: [Sentry] Got debug image for 'System.Private.CoreLib.dll' having Debug ID: 88f749db-4a2f-a70c-a550-b9346d3159c4-007384be
DEBUG: [Sentry] Created DebugStackTrace with 25 frames.
DEBUG: [Sentry] Merging 2 debug images from stacktrace.
DEBUG: [Sentry] There is no session active. Skipping updating the session as errored. Consider setting 'AutoSessionTracking = true' to enable Release Health and crash free rate.
DEBUG: [Sentry] Event not sampled.
DEBUG: [Sentry] Enqueuing envelope aa9cd69ecae148c08592fbcc11e54d52
VERBOSE: [Sentry] Envelope queued up: 'aa9cd69ecae148c08592fbcc11e54d52'
aa9cd69ecae148c08592fbcc11e54d52
Expected Result
Send event to Sentry
Actual Result
Nothing
Copilot
Metadata
Metadata
Assignees
Labels
No labels