question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] GetFileAsync fails on iOS with unknown error

See original GitHub issue

Please fill in the following fields:

  • Unity editor version: 2022.1.8f1
  • Firebase Unity SDK version: 8.10.1
  • Source you installed the SDK: .tgz from https://developers.google.com/unity/archive#play_asset_delivery
  • Problematic Firebase Component: storage
  • Other Firebase Components in use: analytics, app, auth, crashlytics, dynamic-links, firestore, functions, remote-config
  • Additional SDKs you are using: Facebook
  • Platform you are using the Unity editor on: Windows
  • Platform you are targeting: iOS
  • Scripting Runtime: IL2CPP

Please describe the issue here:

We are trying to load file from Firebase storage using code:

var storageReference = storage.GetReferenceFromUrl(url)
storageReference .GetFileAsync()

We are using the same code on Windows, Android without any problems. On iOS, however, the same logic fails with error: An unknown error occurred, error code: 13000, httpResultCode: 300 The exception is not the informative in that case.

Any ideas why this is happening only on iOS, and what we can do to fix that issue?

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
aixaCodecommented, Nov 2, 2022

The issue still persists, but we just stopped using GetFileAsync, and instead, we use GetDownloadUrlAsync to fetch url, and then manually download the file to Application.persistentDataPath via UnityWebRequest

2reactions
paulinoncommented, Jul 19, 2022

Thanks for the additional input, @aixaCode. I was able to reproduce the issue, and it seems odd that this is encountered on just the iOS platform. I’ll let the team know about this, and you may refer to this thread for any updates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GetFileAsync not working downloading from storage in ...
To download the files I am using GetFileAsync to persistentDataPath and it downloads but when it is supposed to be finished an error...
Read more >
Firebase Storage GetFileAsync works on every platform ...
We're using Firebase to store asset bundles which is then pulled down when the add needs them using Storage's GetFileAsync() method.
Read more >
iOS update and restore errors
If your device couldn't be restored and you get a message that "an unknown error occurred [error number]," use these steps.
Read more >
Unity iOS build in Xcode cannot write downloaded images ...
When we build the Unity app for iOS, it gave errors when it tries to download the images from the Firebase Storage. I...
Read more >
Untitled
Vbscript split file into lines, Copy contacts from macbook to iphone 5, Top 10 greatest ... Pure f1 engine sound mp3, Failure hot...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found