On API error stream exits and doesn't recover #524
Labels
api: logging
Issues related to the googleapis/nodejs-logging-bunyan API.
lang: nodejs
Issues specific to JavaScript or TypeScript.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Environment details
launcher.gcr.io/google/nodejs
(Ubuntu 16)@google-cloud/logging-bunyan
version: 3.0.2bunyan
version: 1.8.15Steps to reproduce
script.ts
:PROJECT_ID
andPATH_TO_CREDS_JSON
with real values so we can talk to stackdriver locallymyLog.info({ 'test-3': true });
e.g.ts-node script.ts
mkfile -n 260k temp_file.json
myLog.info({ 'test-2': fs.readFileSync('temp_file.json', 'utf8') });
myLog.info({ 'test-3': true });
and results in a stack trace like:while there are ways to pre-empt this specific API error of exceeding the size limit, would like a way to make sure the stream can resume after this type of event occurs.
The text was updated successfully, but these errors were encountered: