I am worried about this error in firebase functions,
I have sendgrid sending for this function:
exports.mailDealings = functions.firestore .document('dealings/current').onCreate(event => { // send mail const msg = {...} sgMail.send(msg); }) .catch(result => { console.error("sendgrid error", result); });
I was able to execute successfully before, but with one call, this function gives me the error below:
{ Error: Stream removed at ClientReadableStream._emitStatusIfDone (/user_code/node_modules/firebase-admin/node_modules/grpc/src/client.js:255:19) at ClientReadableStream._receiveStatus (/user_code/node_modules/firebase-admin/node_modules/grpc/src/client.js:233:8) at /user_code/node_modules/firebase-admin/node_modules/grpc/src/client.js:705:12 code: 2, metadata: Metadata { _internal_repr: {} } }
There should be an automatic retry for this error, right? Or at least the method for this is easy, for example result.retry(1000) ?
source share