Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.16.3 comes with incompatible grpc versions #70

Closed
ctavan opened this issue Feb 16, 2018 · 1 comment
Closed

v0.16.3 comes with incompatible grpc versions #70

ctavan opened this issue Feb 16, 2018 · 1 comment
Assignees
Labels
api: pubsub Issues related to the googleapis/nodejs-pubsub API. 🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@ctavan
Copy link
Contributor

ctavan commented Feb 16, 2018

When using yarn, v0.16.3 introduced the following error for me:

TypeError: Channel's second argument must be a ChannelCredentials
    at ServiceClient.Client (/app/node_modules/grpc/src/client.js:472:19)
    at new ServiceClient (/app/node_modules/grpc/src/client.js:884:12)
    at /app/node_modules/google-gax/lib/grpc.js:251:12

The reason is that @google-cloud/pubsub now defines grpc@^1.8.4 as a direct dependency as well as google-gax@^0.14.2.

google-gax@^0.14.2 however currently pins its grpc dependency to grpc@~1.7.2, see googleapis/gax-nodejs#178

This altogether breaks v0.16.3 of @google-cloud/pubsub and provokes the above error. Pinning grpc@~1.7.2 back in @google-cloud/pubsub works as a workaround for now.

Related:

@cmdshepard
Copy link

I can confirm this as well.
This is related to issue #31

@stephenplusplus stephenplusplus mentioned this issue Feb 16, 2018
@google-cloud-label-sync google-cloud-label-sync bot added the api: pubsub Issues related to the googleapis/nodejs-pubsub API. label Jan 31, 2020
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 6, 2020
feywind pushed a commit to feywind/nodejs-pubsub that referenced this issue Nov 12, 2024
* chore(package): update sinon to version 5.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the googleapis/nodejs-pubsub API. 🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

4 participants