Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

215
Vistas
Firebase Cloud Function Finished with status: timeout

I get the folowing error in the Firebase console : Function execution took 60015 ms. Finished with status: timeout.

Here is my Cloud Function :

exports.test = functions.https.onRequest((req, res) => {
  cors(req, res, () => {
    const Number = req.body.Number;

    return axios.post('https://ws.orias.fr/service?wsdl',
      getXMLNS(Number), {
      headers:
        { 'Content-Type': 'text/xml' },
    },
    )
      .then((res) => {
        return res.status(200).send(res);
      }).catch((error) => (error) => {
        return res.status(500).send(error);
      });
  });
});

And here is how I call this Cloud Function in my ReactJS Frontend :

fetch('https://xxx.cloudfunctions.net/test', {
                                        method: 'POST',
                                        headers: {
                                            'Accept': 'application/json',
                                            'Content-Type': 'application/json'
                                        },
                                        body: JSON.stringify({
                                            Number: 'xxx',
                                        })
                                    }).then(res => res.json()).then(body => alert(JSON.stringify(body)));
about 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda