-
-
Notifications
You must be signed in to change notification settings - Fork 462
Open
Labels
Description
Description
According to @markushi, the Java SDK retries sending envelopes when getting a 4xx or 5xx HTTP response from the backend. This can lead to a retry loop in some scenarios. For example, if the event payload is too big, Relay returns a 400. The Java SDK will retry sending the envelope until the cache is full, then delete it.
Instead, the SDK MUST delete the envelope when getting a 4xx or 5xx and record a client report with the reason send_error. But for an HTTP 429 response, SDKs MUST discard the envelope without recording a client report, in compliance with the rate limit rules.
Related develop docs PR getsentry/sentry-docs#15571 and Cocoa SDK PR getsentry/sentry-cocoa#6618