Unhandled Error gets thrown in Firebase Cloud Functions
问题 I'm using Firebase Cloud Functions, and in one of my projects I have a simple function that looks like the following: exports.responseGiven = functions.https.onCall(async (data, context) => { if (!context.auth) { throw new functions.https.HttpsError( 'permission-denied', 'Must be an user to execute this action' ); } const studentPath = data.studentPath; const eventPath = data.eventPath; const isUpdating = data.isUpdating; const studentDoc = await admin.firestore().collection('students').doc(