Firebase functions receive a stream of errors deleted onCreate firestore event

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) ?

+5
source share
2 answers

The same problem here (in many functions and arbitrarily) from 3/4 days. Apparently t disappears after deployment ... in a few minutes

 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 
+2
source

From a discussion of Google Groups for this error:

Hi everyone, Sebastian from the Firestore SDK team. We believe this problem is related to the recent update of the GRPC client SDK and conducted tests using GRPC 1.7.1. So far, we have not been able to reproduce this problem with this old version of GRPC.

@ google-cloud / firestore is now at 0.10.1. If you update your dependencies, you can extract this release.

Thank you for your patience.

Sebastian

This seems to fix the problem for me!

0
source

Source: https://habr.com/ru/post/1274131/


All Articles