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

iOS: Lost connection to background transfer service #92

Open
sanderpick opened this issue Jul 22, 2018 · 16 comments
Open

iOS: Lost connection to background transfer service #92

sanderpick opened this issue Jul 22, 2018 · 16 comments

Comments

@sanderpick
Copy link

sanderpick commented Jul 22, 2018

Every so often, when uploads happen in the background (kicked off by a significant location change update), we get an error: Lost connection to background transfer service

Same problem as described in this other lib: joltup/rn-fetch-blob#20

@TSMMark
Copy link
Contributor

TSMMark commented Jul 23, 2018

Thanks for the report. Do you have more information about the exception such as a stack traceback? How would you prefer the exception should be handled by this library?

@sanderpick
Copy link
Author

@TSMMark, I believe it's just an error reported back from the OS, not an exception (updated the issue description). Perhaps this lib could offer a retry?

@L-Yeiser
Copy link

L-Yeiser commented Aug 4, 2018

is the error reported back form the OS a NSURLErrorBackgroundSessionWasDisconnected thrown from here?

@mlop113
Copy link

mlop113 commented Jan 18, 2019

+1 I have same issue, it not resolved

@BaderSerhan
Copy link
Contributor

same...

@tommysusanto
Copy link

Same here... still a problem

@rabi-boop
Copy link

+1 same issue

@JackHull
Copy link

+1 same issue. Running into this on a production build, please follow up this bug immediately.

@danlupascu
Copy link

+1 ... I'm having this issue from time to time too and I tried to catch the error, and make another 5 attempts but it throws this error every time.

@Polydynamical
Copy link

I have not idea what program you guys are talking about, but I am having the same error on Canvas Instructure.

@kasterlod
Copy link
Contributor

I've made some tests & looks like it's because of usage NSURLSessionDataTask *uploadTask;

WHY?

Please take a look at this https://developer.apple.com/documentation/foundation/nsurlsessionuploadtask

Screenshot 2021-02-23 at 22 35 59

As for me change to NSURLSessionUploadTask & add proper handlers fixing the issue. I'll try to prepare PR on days if that will help.

@flogy
Copy link

flogy commented Mar 8, 2021

@kasterlod Sounds nice! How is it going with the PR? Really need this as well! Or could you share some code in the meantime? Thanks 🙂

@kasterlod
Copy link
Contributor

hello! Yeah, I'm during tests, I'll prepare PR on days 🙌 stay tuned!

@pmella16
Copy link

@kasterlod hi, do you have any date for this fix, thanks

@pmella16
Copy link

@flogy you tried with Xcode 12.5 beta 3 ?? according to some comments it is a bug that is fixed in the beta version

@flogy
Copy link

flogy commented Mar 25, 2021

@pmella16 not sure about this, but probably no, as I never intentionally installed any beta version.

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