Angularfire: AngularFireFunctions.httpsCallable not catching the error details

Created on 9 Aug 2019  路  5Comments  路  Source: angular/angularfire

Version info

Angular: 8.2.0

Firebase: 6.3.4

AngularFire: 5.1.3

Debug output

The function is returning a 500 response with a corresponding error and it's not being processed

image

not a plain error:
image

nor the complete error from auth.createUser()
image

image

Actual behavior

console.log(typeof error);
console.log(Object.keys(error));
console.log(error.code, error.details);

image

Expected behavior

To have the returned error message into error.details
Thanks!

bug

All 5 comments

I have the same issue with:

Angular: 7.2.2
Firebase: 5.9.1
AngularFire: 5.1.2

In the cloud function I am using express, but even with returning throwing a functions.https.HttpsError I am not able to receive the error.

Anyone facing the same problem?

How did you guys resolve this? I cant get the errors either

The error message which is sent back should be from type functions.https.HttpsError

This is not solved right?

any new about this?

Was this page helpful?
0 / 5 - 0 ratings