Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!