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

Cancel Upload Throws Error: [Error: Upload Failed] #267

Open
2 tasks done
kusche12 opened this issue Jan 26, 2024 · 0 comments
Open
2 tasks done

Cancel Upload Throws Error: [Error: Upload Failed] #267

kusche12 opened this issue Jan 26, 2024 · 0 comments

Comments

@kusche12
Copy link

Current behavior

I have the backgroundUpload() in a try/catch block. When calling cancelUpload(uploadId), the catch block runs with the error "[Error: Upload Failed]".

Expected behavior

This is not an error, so I don't think it should be calling the catch block on cancel. However, if it is considered an error, then it would be better to have an updated error message so we can filter out the canceled uploads from the actual error uploads.

Platform

  • Android
  • iOS

React Native Version

0.70.5

React Native Compressor Version

1.8.23

Reproducible Steps And Demo

  1. Call backgroundUpload() in a try/catch block and get the uploadId
  2. Then call cancelUpload(uploadId)
  3. Notice that backgroundUpload is caught in the catch block with an error
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

No branches or pull requests

1 participant