BUG : Corrupted events leads to stuck batch uploads with status code 400 and error Request neither has anonymousId nor userId
#359
Labels
bug
Something isn't working
Describe the bug
Our Android app wasn't successfully sending analytics at all with the Rudderstack SDK.
Looks like we somehow corrupted the events database, and then the batch send loop got stuck on these invalid events on the response
Request to endpoint https://rudderstack.beeper-tools.com/v1/batch failed with status code 400 and error Request neither has anonymousId nor userId
.We did have some bad proguard rules that we think may have created this bad data, and have since fixed those rules, but even then having this upload loop get stuck is unfortunate.
I would propose that if events without a userId/anonymousId were invalid they shouldn't be allowed to be submitted to the database for later sending, or if we get a bad request response from the data plane we drop the data instead of just trying to send the same bad payload again in the future?
To Reproduce
Not sure how we managed to get users into this state, might have to be a speculative fix.
Expected behavior
The SDK shouldn't get stuck in a way that requires the app to be uninstalled to get events flowing.
Screenshots
n/a
Version of the Android SDK
rudderstack = { module = "com.rudderstack.android.sdk:core", version = "1.20.1" }
The text was updated successfully, but these errors were encountered: