Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

446
Visualizações
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",*
about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda