You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Query a large collection using query.onSnapshot on a slow network connection or large enough collection. In my case I open four queries for four distinct collections of ~35k documents, each ~100kBs in size. After ~90 seconds, ~40k documents fetched, an error occurs:
Error: Error 4: The datastore operation timed out, or the data was temporarily unavailable.
at QueryWatch.onData (/my-project-path/node_modules/@google-cloud/firestore/build/src/watch.js:346:34)
at PassThrough.<anonymous> (/my-project-path/node_modules/@google-cloud/firestore/build/src/watch.js:284:26)
at PassThrough.emit (events.js:311:20)
at PassThrough.EventEmitter.emit (domain.js:482:12)
at addChunk (_stream_readable.js:294:12)
at readableAddChunk (_stream_readable.js:275:11)
at PassThrough.Readable.push (_stream_readable.js:209:10)
at PassThrough.Transform.push (_stream_transform.js:152:32)
at PassThrough.afterTransform (_stream_transform.js:96:10)
at PassThrough._transform (_stream_passthrough.js:46:3)
API response from QueryWatch.onData:
remove {
targetIds: [ 1 ],
targetChangeType: 'REMOVE',
cause: {
details: [],
code: 4,
message: 'The datastore operation timed out, or the data was temporarily unavailable.'
},
resumeToken: <Buffer >,
readTime: null
}
Environment details
@google-cloud/firestoreversion: 3.7.4Steps to reproduce
Query a large collection using
query.onSnapshoton a slow network connection or large enough collection. In my case I open four queries for four distinct collections of ~35k documents, each ~100kBs in size. After ~90 seconds, ~40k documents fetched, an error occurs:API response from
QueryWatch.onData: