Skip to content

TypeError: Cannot read property 'pop' of null #1539

@tallguys

Description

@tallguys

Environment details

  • OS: Google Kubernetes Container
  • Node.js version: 12.15.0
  • npm version: to be update.
  • @google-cloud/spanner version: 5.16.1

Steps to reproduce

  1. ?
  2. ?

We're seeing an issue in our production environment. It happens pretty inconsistently, so I'm not sure of how exactly to reproduce it. The error message and stack:

TypeError: Cannot read property 'pop' of null
    at Function.mergeLists (/deploy/my-project/node_modules/@google-cloud/spanner/build/src/partial-result-stream.js:255:65)
    at Function.merge (/deploy/my-project/node_modules/@google-cloud/spanner/build/src/partial-result-stream.js:227:41)
    at Function.mergeLists (/deploy/my-project/node_modules/@google-cloud/spanner/build/src/partial-result-stream.js:255:44)
    at Function.merge (/deploy/my-project/node_modules/@google-cloud/spanner/build/src/partial-result-stream.js:227:41)
    at Function.mergeLists (/deploy/my-project/node_modules/@google-cloud/spanner/build/src/partial-result-stream.js:255:44)
    at Function.merge (/deploy/my-project/node_modules/@google-cloud/spanner/build/src/partial-result-stream.js:227:41)
    at PartialResultStream._addChunk (/deploy/my-project/node_modules/@google-cloud/spanner/build/src/partial-result-stream.js:145:48)
    at PartialResultStream._transform (/deploy/my-project/node_modules/@google-cloud/spanner/build/src/partial-result-stream.js:84:24)
    at PartialResultStream.Transform._read (_stream_transform.js:189:10)
    at PartialResultStream.Transform._write (_stream_transform.js:177:12)
    at PartialResultStream.obj.<computed> [as _write] (/deploy/my-project/node_modules/stubs/index.js:26:26)
    at doWrite (_stream_writable.js:435:12)
    at writeOrBuffer (_stream_writable.js:419:5)
    at PartialResultStream.Writable.write (_stream_writable.js:309:11)
    at Pumpify.ondata (/deploy/my-project/node_modules/readable-stream/lib/_stream_readable.js:619:20)
    at Pumpify.emit (events.js:223:5)

The error seems can not be caught. I wrapped try-catch on all of my spanner operations but still got restart of my nodejs process.

Please let me know what other information would be helpful.

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the googleapis/nodejs-spanner API.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions