title: Error: [storage/unknown] An unknown error has occurred. iOS firebase
body: <p>I'm trying to post some csv files to Firebase by uploading them to Firestore, downloading the urls, and then doing so, but I keep receiving this issue. Ninety percent of the time, it works, but occasionally it displays this error.</p>
  <blockquote>
  <p>Error: [storage/unknown] An unknown error has occurred.</p>
  </blockquote>
  <pre><code>const uploadToStorage = async (file, index) =&gt; {
      await storage()
        .ref(`SensorData/${userName}/session_${sessionCount}/${index}.csv`)
        .putFile(file);
      const url = await storage()
        .ref(`SensorData/${userName}/session_${sessionCount}/${index}.csv`)
        .getDownloadURL();
      urls[index] = url;
      return urls;
    };
  
  const uploadToFirebase = async (files) =&gt; {
      urls = [];
      Promise.all(
        // Array of &quot;Promises&quot;
        files.map((file, index) =&gt; uploadToStorage(file, index))
      )
        .then((url) =&gt; {
          postReportsToFirebase(urls);
        })
        .catch((error) =&gt; {
          console.log(error);
        });
    };
  </code></pre>
  <p><strong>Version:</strong></p>
  <ul>
  <li>&quot;react-native&quot;: &quot;0.64.1&quot;,</li>
  <li>&quot;@react-native-firebase/app&quot;: &quot;^12.7.3&quot;,</li>
  <li>&quot;@react-native-firebase/auth&quot;: &quot;^12.7.3&quot;,</li>
  <li>&quot;@react-native-firebase/firestore&quot;: &quot;^12.7.3&quot;,</li>
  <li>&quot;@react-native-firebase/functions&quot;: &quot;^12.7.3&quot;,</li>
  <li>&quot;@react-native-firebase/storage&quot;: &quot;^12.7.3&quot;,*</li>
  </ul>