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
{{ message }}
Repository navigation
Quota error messages will cause NUnit tests to fail when CaptureInEditor = true #2538
Found on sentry v4.1.0, but likely applies to any version
Steps to Reproduce
I think any quota error message will trigger this, but here's the steps that should trigger it easily with structured logs
Install Sentry to a project and configure it to capture in editor and send structured logs for all types
Setup NUnity tests in unity that run when a build happens
Go over the Logs quota for the organization
Trigger a build in unity
Expected Result
Hitting a quota/rate limit error does not cause NUnit tests to fail.
Actual Result
If a quota limit log message is triggered during the test, it will cause it to fail. Example:
11:24:33 Failed Test: TestName with message: Unhandled log message: '[Error] Sentry: (Error) HttpTransport: Sentry rejected the envelope ''. Status code: TooManyRequests. Error detail: Sentry dropped data due to a quota or internal rate limit being reached. This will not affect your application. See https://docs.sentry.io/product/accounts/quotas/ for more information.. Error causes: . '. Use UnityEngine.TestTools.LogAssert.Expect
Additional Info
I believe this is happening because LogAssert.ignoreFailingMessages isn't set to true for our tests, and the quota message is logged with LogError. I wouldn't consider "just enable this option for your tests" to be a good solution, as I do still want the tests to fail with other unexpected log messages, and I don't think there's any kind of filter for it.
This may not be able to be fixed directly, other than making the message not at the error level (which may not be desired).
That's a tricky one, but if I understood correctly, this only happens if Debug is set to true. But you're right, this should probably be a Warning and not an Error since it is an expected outcome, similar to what happens when dropping attachments that are too large.
Activity
linear commentedon Feb 11, 2026
UNITY-207
bitsandfoxes commentedon Feb 12, 2026
That's a tricky one, but if I understood correctly, this only happens if
Debugis set totrue. But you're right, this should probably be aWarningand not anErrorsince it is an expected outcome, similar to what happens when dropping attachments that are too large.bitsandfoxes commentedon Feb 16, 2026
Let's see what the good folks over at the .NET SDK say about getsentry/sentry-dotnet#4927
bitsandfoxes commentedon Feb 18, 2026
Will come as part of the next bump.