Skip to content

TypeError: Channel credentials must be a ChannelCredentials object #357

@heymitul

Description

@heymitul

Suddenly it stopped working

TypeError: Channel credentials must be a ChannelCredentials object
    at new ChannelImplementation (/mnt/Work/upwork/Genie Words/geniewords-api/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/channel.js:75:19)
    at new Client (/mnt/Work/upwork/Genie Words/geniewords-api/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/client.js:61:36)
    at new ServiceClientImpl (/mnt/Work/upwork/Genie Words/geniewords-api/node_modules/google-gax/node_modules/@grpc/grpc-js/build/src/make-client.js:58:5)
    at GrpcClient.createStub (/mnt/Work/upwork/Genie Words/geniewords-api/node_modules/google-gax/build/src/grpc.js:334:22)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)

I had to add resolutions as follow as a workaround

"resolutions": {
    "google-gax": "2.27.0",
    "@grpc/grpc-js": "1.3.7"
  },

Metadata

Metadata

Assignees

Labels

priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions