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

477
Views
Función Firebase, el error no se detecta

Tengo la siguiente función en firebase:

 exports.findUserInAuth = functions.https.onCall(async (data) => { let value = data.value; try { return await admin.auth().getUserByEmail(value); } catch (error) { throw new functions.https.HttpsError(error.code, error.message); } });

En los registros de funciones de firebase obtengo:

 findUserInAuth Unhandled error Error: Unknown error code: auth/user-not-found. at new HttpsError (/workspace/node_modules/firebase-functions/lib/common/providers/https.js:69:19) at /workspace/index.js:22:13 at processTicksAndRejections (internal/process/task_queues.js:97:5)

Según tengo entendido, estoy detectando el error correctamente. En mi lado del cliente me sale el siguiente error:

 functions/internal INTERNAL

De acuerdo con la documentación "Si se arroja un error que no sea HttpsError desde sus funciones, su cliente recibe un error con el mensaje INTERNO y el código interno".

¿Algunas ideas?

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!