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

check errorStream before inputStream for server side error response #49

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

Crare
Copy link

@Crare Crare commented May 31, 2024

related to issue #48

@birdofpreyru birdofpreyru changed the base branch from master to dev-v2.27 June 11, 2024 15:08
@birdofpreyru birdofpreyru merged commit e3a553a into birdofpreyru:dev-v2.27 Jun 11, 2024
@birdofpreyru
Copy link
Owner

Hey @Crare , sorry for delay, I merged it now, but I also decided to slightly change related logic — in case of failure the promise returned from uploadFiles() will reject with an Error instance; if it failed due to HTTP error (status codes 4xx and 5xx) the error's message will be the reason corresponding to that status code (as per http-status-codes), and UploadResultT object will be attached to .result field of that error. It is already implemented and works for Android in dev-v2.27 branch, but it will take some more time to test in on other platforms and release.

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