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

uninitialized constant Gapic::ServiceStub::ChannelPool #480

Open
jacob-braze opened this issue Jan 25, 2024 · 2 comments
Open

uninitialized constant Gapic::ServiceStub::ChannelPool #480

jacob-braze opened this issue Jan 25, 2024 · 2 comments
Labels
bug Something isn't working triage New issues that need to be sorted into other labels

Comments

@jacob-braze
Copy link

jacob-braze commented Jan 25, 2024

Describe the bug:
Getting uninitialized constant Gapic::ServiceStub::ChannelPool when running the get_account_hierarchy example

google_ads_service = client.service.google_ads

Steps to Reproduce:

  1. clone this repo locally
  2. configure ~/google_ads_config.rb with the required secrets
  3. run ruby get_account_hierarchy.rb

Expected behavior:
Did not expect uninitialized constant Gapic::ServiceStub::ChannelPool

Client library version and API version:
Client library version: 25.0.1
Google Ads API version: V15

Request/Response Logs:
➜ script git:(develop) ✗ ruby get_account_hierarchy.rb

No manager customer ID is specified. The example will print the hierarchies of all accessible customer IDs:
/Users/xxx/.rbenv/versions/3.1.0/lib/ruby/gems/3.0.0/gems/google-ads-googleads-25.0.1/lib/google/ads/google_ads/v15/services/customer_service/client.rb:570:in `channel_pool': uninitialized constant Gapic::ServiceStub::ChannelPool (NameError)
        from /Users/xxx/.rbenv/versions/3.1.0/lib/ruby/gems/3.0.0/gems/google-ads-googleads-25.0.1/lib/google/ads/google_ads/v15/services/customer_service/client.rb:141:in `initialize'
        from /Users/xxx/.rbenv/versions/3.1.0/lib/ruby/gems/3.0.0/gems/google-ads-googleads-25.0.1/lib/google/ads/google_ads/factories/v15/services.rb:1420:in `new'
        from /Users/xxx/.rbenv/versions/3.1.0/lib/ruby/gems/3.0.0/gems/google-ads-googleads-25.0.1/lib/google/ads/google_ads/factories/v15/services.rb:1420:in `customer'
        from /Users/xxx/.rbenv/versions/3.1.0/lib/ruby/3.0.0/delegate.rb:87:in `method_missing'
        from get_account_hierarchy.rb:145:in `get_account_hierarchy'
        from get_account_hierarchy.rb:185:in `<main>'

Anything else we should know about your project / environment:

@jacob-braze jacob-braze added bug Something isn't working triage New issues that need to be sorted into other labels labels Jan 25, 2024
@mcloonan
Copy link
Member

I'm not able to reproduce. Can you double-check what version of gapic-common you have installed? Try updating that library and see if that resolves your issue.

@himanshu-patel-dev
Copy link
Contributor

himanshu-patel-dev commented Feb 15, 2024

use version 25.0.2 for google-ads-googleads ruby gem and that uses gapic version 0.20.0 rather than old 0.6.0 gapic.

Refer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage New issues that need to be sorted into other labels
Projects
None yet
Development

No branches or pull requests

3 participants