Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WEB-1757] Handle new backend error codes that may show in the redemption endpoint #4592

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

tonidero
Copy link
Contributor

Description

Currently these error codes would display in the API as "UnknownBackendError". This performs some better processing of these error codes.

@tonidero tonidero marked this pull request as ready for review December 16, 2024 11:17
@tonidero tonidero requested review from a team December 16, 2024 11:17
return .configurationError
case .requestAlreadyInProgress,
.subscriberAttributesAreBeingUpdated:
return .operationAlreadyInProgressForProductError
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this error matches android's OperationAlreadyInProgressError without the ForProduct part... I think I prefer Android's naming but I didn't want to cause a breaking change due to this so I just reused the current naming.

@tonidero
Copy link
Contributor Author

Will merge this for now but we can change the relative error code if needed. It should be a pretty uncommon error code in any case.

@tonidero tonidero merged commit 793b6f6 into main Dec 16, 2024
10 checks passed
@tonidero tonidero deleted the handle-new-backend-error-codes branch December 16, 2024 11:33
This was referenced Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants