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

307
Views
Las funciones de la nube de Firebase funcionan en el emulador, pero no se implementaron

Estoy trabajando para un mini proyecto, necesito llamar a una API externa pero no pude implementar la función, tengo el siguiente error:

Error: hubo un error al implementar funciones

No pude encontrar nada en firebase-debug.log. cuando llamé a la misma función que la función activada por http y la probé desde el emulador, funcionó. Sin embargo, no pude implementarla.

 exports.scheduledFunction = functions.pubsub.schedule("every 1 minute").onRun(async (context) => { const response = await getResponse(); functions.logger.log(response); return null; }); function getResponse() { const url = "https://pikas.techinsight.com.my/kgateway/testing.php"; return new Promise((resolve, reject) => { axios.get(url).then((response) => { return resolve(response.data.split("\n")); }).catch((error) => { functions.logger.log(error); return reject(error); }); }); }

Aquí está el debug.log

 [debug] [2021-11-15T18:41:34.063Z] Error: Failed to update function scheduledFunction in region us-central1 at /usr/local/lib/node_modules/firebase-tools/lib/deploy/functions/release/fabricator.js:38:11 at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Fabricator.updateV1Function (/usr/local/lib/node_modules/firebase-tools/lib/deploy/functions/release/fabricator.js:250:32) at async Fabricator.updateEndpoint (/usr/local/lib/node_modules/firebase-tools/lib/deploy/functions/release/fabricator.js:134:13) at async handle (/usr/local/lib/node_modules/firebase-tools/lib/deploy/functions/release/fabricator.js:75:17) [error] [error] Error: There was an error deploying functions

por favor ayudame a ver que estoy haciendo mal

about 4 years ago · Juan Pablo Isaza
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!