google-api-ruby-client icon indicating copy to clipboard operation
google-api-ruby-client copied to clipboard

Since 0.11.2 update - "uninitialized constant Google::Apis::PeopleV1::PeopleService"

Open axhamre opened this issue 9 years ago • 2 comments

I've been using the People Api without problem for 6 months. But today when I updated the google-api-client gem to 0.11.2, I received the following error:

NameError (uninitialized constant Google::Apis::PeopleV1::PeopleService):

due to this line in my code:

client = Google::Apis::PeopleV1::PeopleService.new

Are there any changes how to initialize the API or is this a bug?

axhamre avatar May 09 '17 12:05 axhamre

It seems the People API owners changed the canonical name of their API from "People" to "People Service".

That's forced the Ruby code generator to produce Google::Apis::PeopleV1::PeopleServiceService.

That's a pretty unfortunate renaming... but please try replacing PeopleService with PeopleServiceService.

saicheems avatar May 09 '17 16:05 saicheems

Yes, that change solved the issue. Thanks a lot for the quick response!

axhamre avatar May 10 '17 10:05 axhamre