googleapis / gax-nodejs

Google API Extensions for Node.js
Apache License 2.0
112 stars 83 forks source link

TypeError: Channel credentials must be a ChannelCredentials object #1124

Open heymitul opened 2 years ago

heymitul commented 2 years ago

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"
  },
hkdevandla commented 2 years ago

@summer-ji-eng , can you take a look? Thanks!

summer-ji-eng commented 2 years ago

Thanks @MitulGedeeya file the issues. Can I have more context like what kind the channel or client options, and which api you are using.

@arithmetic1728 could you help me take a look is this relate to recent credential change? Thank you very much.

sohel87 commented 2 years ago

Hi @MitulGedeeya Have you managed to fix this issue?

heymitul commented 2 years ago

Hi @sohel87 unfortunately not.