[5.0.0] Differentiate login errors and add logs #1841
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
One Line Summary
Differentiate login failure cases for (1) conflict response and (2) other general 400-based errors, and add a log clarifying expected conflict error.
Details
Motivation
We have had reports that developers are troubled to receive a 409 error response for login
1. Differentiate login failure cases
ExecutionResult
type ofFAIL_CONFLICT
to differentiate this case from general failure case ofFAIL_NORETRY
2. Add logs to login failures
Example of logs:
Scope
There is no implementation detail changes to
login
. We still handle login failures the same way but log differently when it fails due to a 409 conflict (which is a correct expected response) and another unexpected error response.Testing
Unit testing
None, we should add tests though.
Manual testing
Android emulator on API 33
Affected code checklist
Checklist
Overview
Testing
Final pass
This change is