【发布时间】:2019-10-14 05:36:59
【问题描述】:
我的可调用 Firebase 函数引发错误:
throw new functions.https.HttpsError(
'invalid-argument',
`Invalid token ${token} for file ${fileName}.`
);
我只看到以下日志:
12:29:22.500 PM SQR-cancelAllotment Function execution took 1779 ms, finished with status code: 400
12:29:20.722 PM SQR-cancelAllotment Function execution started
因此,代码400 没有任何错误消息。为什么?
我不想在单独的console.error 中复制错误消息。
【问题讨论】:
标签: firebase google-cloud-functions error-logging