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

What is a proper way to refresh FAILED transfer #87

Closed
polok opened this issue Jan 15, 2016 · 6 comments
Closed

What is a proper way to refresh FAILED transfer #87

polok opened this issue Jan 15, 2016 · 6 comments
Labels
feature-request Request a new feature

Comments

@polok
Copy link

polok commented Jan 15, 2016

Hi,

I have a view where I show progress of the update. The problem is that sometimes because of low internet connection I get such error Unable to execute HTTP request: Read timed out... and transfer gets FAILED status what is fine but the problem is how I should force the SDK to start upload again. I don't want to close the app and run once again. Is there a possibility that this could be done automatically, scheduled or something ?

Thanks in advance,

@fosterzhang fosterzhang added the feature-request Request a new feature label Jan 19, 2016
@fosterzhang
Copy link
Contributor

Currently the SDK doesn't allow you to retry a failed transfer. Instead, you need to start a new transfer. I've seen similar requests several times. I'll research the best approach to address it. Stay tuned.

@polok
Copy link
Author

polok commented Jan 19, 2016

Cool, looking forward for it. Thanks

@fosterzhang
Copy link
Contributor

AWS SDK for Android v2.2.11 was released just now. You can use TransferUtility.resume(int) to resume a transfer which is not in TransferState.COMPLETED state. Check out the release notes for more details.

@polok
Copy link
Author

polok commented Jan 29, 2016

Awesome! I will check. Thx

@fosterzhang
Copy link
Contributor

Closing this. Feel free to reopen it if the issue persists.

@diogomonte
Copy link

Does it still working for version 2.3.3? I've tried to call TransferUtility.resume(int) several times for a failed file and nothing happens.

And also transferUtility.getTransfersWithTypeAndState(TransferType.ANY, TransferState.FAILED) returns an empty list even with FAILED files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature
Projects
None yet
Development

No branches or pull requests

3 participants