You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Events are dropped and background worker continues working.
Actual Result
After being stuck for about 2min, waiting for envelope to be sent, background working thinks the Shutdown token was triggered and exits.
It appears that an OperationCanceledException can be thrown within SendEnvelopeAsync and the background worker will misinterpret that as a shutdown, causing it to stop processing events.
On further research, it looks like the dotnet HTTP client in dotnet core and NET5+ will throw TaskCanceledException if on timeout, which inherits from OperationCanceledException. This explains why this could be happening.
Package
Sentry
.NET Flavor
.NET
.NET Version
7.0.306
OS
Any (not platform specific)
SDK Version
4.2.1
Self-Hosted Sentry Version
24.2.0
Steps to Reproduce
Expected Result
Events are dropped and background worker continues working.
Actual Result
After being stuck for about 2min, waiting for envelope to be sent, background working thinks the Shutdown token was triggered and exits.
It appears that an
OperationCanceledException
can be thrown withinSendEnvelopeAsync
and the background worker will misinterpret that as a shutdown, causing it to stop processing events.The text was updated successfully, but these errors were encountered: