-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Cannot upload file to Storage. uploadTask.putFile callback is not called #1888
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
Comments
@kainjinez We might be able to help you here, but usage questions are more appropriate for stackoverflow. |
@paulb777 Hi Paul, |
Unfortunately, we don't currently have any debug logging in our Storage SDKs. Are you able to verify that we are able to connect to the backend (by monitoring the app's network traffic through Activity Monitor or similar?). How large is the file you are uploading? |
@schmidt-sebastian Hi Sebastian, |
Please solve this issue! I am also facing the same. I have done all the changes and after 12 hours I came to know that the issue exists in SDK. Success / Error callback doesn't call! |
@sohilmemon You may try to downgrade the SDK to this version, it works for me. Use this and wait for their fix |
@sohilmemon Are you also using the MacOS version of the SDK? |
Did anyone find the solution to this issue? I am still facing this issue using iOS SDK version v5.7 |
You can temporary pass through this issue by using older version. Check drive link above. |
@kainjinez @azeemse @sohilmemon Does one of you have a minimal code sample that could reproduce this issue? I would like to drill down which release between 4.8 and 5.7 introduced this regression and am having a hard time since the callbacks fire for me. A good starting point would be the quickstart app: https://github.com/firebase/quickstart-ios/tree/master/storage Do you see the same issues there? What device are you encountering this issue on? |
Hi there, I am also finding this issue as well with the latest version of Firebase. I cannot upload file and there is no callback. I have tried both putData and putFile. I get no errors, no progress. If this could be resolved asap, it would be awesome of you guys! |
Since I have not heard any reports, I assume that downloads work fine? |
@schmidt-sebastian since i faced this problem when developing MacOS app, then I cannot check your quickstart because it belong to iPhone app. Even it works with iPhone, it may not related with this issue. |
So I tested out various scenarios. So far my findings have been that putFile works iOS simulator but not for actual device testing. |
Okay so update from me is that I believe I figured what was wrong with my code. I was calling the api on another thread other than main and hence, I used |
I was using the latest version of Firebase for the first time in any of my project so I just followed the documentation. Copied the code written in documentation and pasted in my project to just check how it works and what it returns but the code never ran successfully. It executed and observes the "progress" status but never returns any "completion block" And most interestingly no help is available on Stack Overflow or any other platform. This thread gave me some clue that this is the issue of SDK so I tried @kainjinez solutions, turned down the version to 4.8.0 and it simply started working. Things to remember, I am building an iOS application Xcode: 10.0 |
With the latest iOS SDK, I tried this solution but this didn't work for me. Details are mentioned in my above comment. |
Thanks for all your help :) We already looked into moving the Storage internal operations off the main queue, and this thread is now another good reason to do so. We will release a fix soon. |
Is this issue is resolved and Can I update my pods to the latest version now? |
We are still working on the release. The fix will be out in the next couple of days. |
The milestone associated with this issue will be closed when 5.12.0 is published. |
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
I'm developing uploading screenshot to Storage for macOS application. I used these code below, it does not throw any error or crash. I don't see any new file on Storage after upload and callback at
putFile
won't be called.Steps to reproduce:
The text was updated successfully, but these errors were encountered: