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

Fix Upload Retry Bug #436

Merged
merged 6 commits into from
Sep 6, 2024
Merged

Fix Upload Retry Bug #436

merged 6 commits into from
Sep 6, 2024

Conversation

jumaallan
Copy link
Member

Story: https://app.shortcut.com/smileid/story/13456/fairmoney-issue-investigate-and-fix

Summary

A few sentences/bullet points about the changes

Known Issues

Any shortcomings in your work. This may include corner cases not correctly handled or issues related
to but not within the scope of your PR. Design compromises should be discussed here if they were not
already discussed above.

Test Instructions

Concise test instructions on how to verify that your feature works as intended. This should include
changes to the development environment (if applicable) and all commands needed to run your work.

Screenshot

If applicable (e.g. UI changes), add screenshots to help explain your work.

@jumaallan jumaallan requested a review from a team as a code owner August 30, 2024 07:55
throwable is HttpException -> {
val smileIDException = throwable.toSmileIDException()
if (smileIDException.details.code == "2215") {
SmileID.api.prepUpload(prepUploadRequest.copy(retry = true))
Copy link
Contributor

Choose a reason for hiding this comment

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

@jumaallan we're starting to have duplication of code, is it possible to extract what we have in common between products and reuse that, this is a good example of docv and biometric kyc doing the same thing

Copy link
Member Author

Choose a reason for hiding this comment

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

We cannot abstract this code per se since we need this flow inside submit job scope - we also modify the previous request so we need to be in the same lambda to avoid passing request and response body back and forth

@JNdhlovu
Copy link
Contributor

JNdhlovu commented Sep 2, 2024

Do we need to worry about https://docs.usesmileid.com/further-reading/result-codes/error-codes 2314 ?

@jumaallan
Copy link
Member Author

2314

No, we are taking care of a different error code here

@jumaallan jumaallan merged commit 23c8c04 into main Sep 6, 2024
3 checks passed
@jumaallan jumaallan deleted the feat/fix-retry-bug branch September 6, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants