googleads / google-ads-ruby

Google Ads API Ruby Client Library
https://developers.google.com/google-ads/api/
Apache License 2.0
70 stars 65 forks source link

ArgumentError: unknown keywords: :endpoint_template, :universe_domain #494

Closed mike1026915 closed 4 months ago

mike1026915 commented 5 months ago

What is your question? I just upgrade the library to version 27.0.0 I got below error when executing below code

[12] pry(main)> google_ads_service = client.service.google_ads
**ArgumentError: unknown keywords: :endpoint_template, :universe_domain**
from /Users/mikefang/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/gapic-common-0.20.0/lib/gapic/grpc/service_stub.rb:61:in `initialize'

Could you help me to solve this issue?

Thanks

trwong commented 4 months ago

I'm getting the same error on version 27.0.0

mcloonan commented 4 months ago

I'm not able to reproduce. It works fine for me on 27.0.0. Try updating grpc to a newer version. If that winds up fixing it, please let me know so I can bump our dependencies.

trwong commented 4 months ago

I'm not able to reproduce. It works fine for me on 27.0.0. Try updating grpc to a newer version. If that winds up fixing it, please let me know so I can bump our dependencies.

@mcloonan what version of grpc are you on?

mcloonan commented 4 months ago

1.60.0

mcloonan commented 4 months ago

You can also try updating gapic-common; I'm on version 0.21.1

trwong commented 4 months ago

Updated gapic-common to 0.21.1 and I'm receiving a different error:

objc[901]: +[__NSTimeZone initialize] may have been in progress in another thread when fork() was called.
objc[901]: +[__NSTimeZone initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

edit: found this SO https://stackoverflow.com/questions/52671926/rails-may-have-been-in-progress-in-another-thread-when-fork-was-called

and adding export DISABLE_SPRING=true has fixed it locally. will test in prod and report back

mcloonan commented 4 months ago

That error message has nothing to do with our library.

mike1026915 commented 4 months ago

@mcloonan, after updating grpc to 1.64.0 and gapic-common to 0.21.1. The issue for me is resolved. thanks