Closed rick51231 closed 1 year ago
HI Rick, that sounds like it might be a bug. Could you share how you're resuming the upload exactly so I can attempt to reproduce and troubleshoot this?
Hello, same bug on my side. This is how I resume an upload (after a lost connection for example) :
guard let uploadID = uploadID else {
return
}
self.state = .progress
do {
try tusClient.retry(id: uploadID)
} catch {
manageError()
}
Thanks! That looks like the way it should be done. I'm actually very close to a pretty big refactor that moves us to a background URLSession to have proper support for background uploads so I'll make sure to run some extra tests against this scenario as well
hey @donnywals, firstly, thanks for all the great work on the library, it is appreciated! I work with @lafalex and we don't perform uploads in the background, maybe your refactor would solve our issue, but maybe not. What do you think? Can we get an early cut of your refactor to try out? is dw/bg-urlsession
a stable branch?
Hi Mike! The background part of it is more that even supporting it required a pretty big refactor, so even if you don't do background uploads, the structural changes will still be relevant (and might fix the issue).
The dw/bg-urlsession
branch should be mostly stable. It has a lot of debug logging noise right now but I try and avoid pushing to that branch if something's not quite working. It should definitely be good enough for you to run some tests. The last remaining issue I know off at this time is handling uploads that completed while the app was in the background. Since you wouldn't be using that feature right now I think it's safe to test this branch for now and validate whether it works for you.
Hi Donny! Sorry for the late answer, I really missed GitHub's notification
Here is an example that can reproduce the bug. The server side is made with tus-node-server
I also saw that there are already tags with versions 3.1.6 and 3.1.7, but there is no information in the release section. Is that how it should be? In 3.1.6+ I cannot reproduce this bug, so It might be already fixed in the 2ad3209400c22d1c8760156d4a4168a44ad064e3
Hi @rick51231 thanks for getting back and re-testing! Given that you can no longer repro, I will close this issue for now. Feel free to reopen or create a new issue in case this comes up again.
For 3.1.6 and 3.1.7 you can see any fixes or changes in the CHANGELOG.md file: https://github.com/tus/TUSKit/blob/main/CHANGELOG.md
I'll take a look at the releases section and add the same information there in the future for convenience :)
Hello
I'm using this library with Tusd When resuming near-completed (or completed) upload, sometimes it stucks and doesn't not send any delegate callbacks.
self.tusClient.retry(id: tusId)
(result = true) creates aStatusTask
that returnssuccess([])
in Scheduler.swift:104 and nothing happened after that. Is it bug or am i doing it wrong?Thank you