-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Closed
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.
Description
Version
node:latest
Platform
macOS Sonoma 14.6.1
23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000 arm64
Subsystem
No response
What steps will reproduce the bug?
releasing docker image with node:latest to Heroku and firestore configured
How often does it reproduce? Is there a required condition?
every time it tries to run
new FirestoreClient (/app/node_modules/@google-cloud/firestore/build/src/v1/firestore_client.js:136:32)
What is the expected behavior? Why is that the expected behavior?
App should just start
What do you see instead?
It crashes with warning
2024-08-23T10:31:33.265229+00:00 app[web.1]: RangeError: "length" is outside of buffer bounds
2024-08-23T10:31:33.265230+00:00 app[web.1]: at Buffer.proto.utf8Write (node:internal/buffer:1066:13)
2024-08-23T10:31:33.265230+00:00 app[web.1]: at Op.writeStringBuffer [as fn] (/app/node_modules/protobufjs/src/writer_buffer.js:61:13)
2024-08-23T10:31:33.265231+00:00 app[web.1]: at BufferWriter.finish (/app/node_modules/protobufjs/src/writer.js:453:14)
2024-08-23T10:31:33.265231+00:00 app[web.1]: at /app/node_modules/@grpc/proto-loader/src/index.ts:382:62
2024-08-23T10:31:33.265231+00:00 app[web.1]: at Array.map (<anonymous>)
2024-08-23T10:31:33.265232+00:00 app[web.1]: at createPackageDefinition (/app/node_modules/@grpc/proto-loader/src/index.ts:381:47)
2024-08-23T10:31:33.265232+00:00 app[web.1]: at Object.fromJSON (/app/node_modules/@grpc/proto-loader/src/index.ts:453:10)
2024-08-23T10:31:33.265232+00:00 app[web.1]: at GrpcClient.loadProtoJSON (/app/node_modules/google-gax/build/src/grpc.js:228:51)
2024-08-23T10:31:33.265233+00:00 app[web.1]: at new LocationsClient (/app/node_modules/google-gax/build/src/locationService.js:118:32)
2024-08-23T10:31:33.265233+00:00 app[web.1]: at new FirestoreClient (/app/node_modules/@google-cloud/firestore/build/src/v1/firestore_client.js:136:32) {
2024-08-23T10:31:33.265234+00:00 app[web.1]: code: 'ERR_BUFFER_OUT_OF_BOUNDS'
2024-08-23T10:31:33.265234+00:00 app[web.1]: }
Additional information
I set my node version to node:20
and this resolves it for now
Metadata
Metadata
Assignees
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.