-
-
Notifications
You must be signed in to change notification settings - Fork 355
Description
Description
The Cocoa and Java SDK retry 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. Both SDKs will retry sending the envelope until the cache is full, then delete it.
Instead, the SDKs 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.
Please double-check if the RN SDK already handles this correctly; if it does, please close the issue with a comment.
Related develop docs PR getsentry/sentry-docs#15571 and Cocoa SDK PR getsentry/sentry-cocoa#6618 and Java issue getsentry/sentry-java#4921