• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

351
Views
Error: [storage/unknown] An unknown error has occurred. iOS firebase

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.

Error: [storage/unknown] An unknown error has occurred.

const uploadToStorage = async (file, index) => {
    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) => {
    urls = [];
    Promise.all(
      // Array of "Promises"
      files.map((file, index) => uploadToStorage(file, index))
    )
      .then((url) => {
        postReportsToFirebase(urls);
      })
      .catch((error) => {
        console.log(error);
      });
  };

Version:

  • "react-native": "0.64.1",
  • "@react-native-firebase/app": "^12.7.3",
  • "@react-native-firebase/auth": "^12.7.3",
  • "@react-native-firebase/firestore": "^12.7.3",
  • "@react-native-firebase/functions": "^12.7.3",
  • "@react-native-firebase/storage": "^12.7.3",*
almost 3 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error