Closed peterviergutz closed 7 years ago
Hmm interesting, it could be an issue with the Discovery API. @saicheems
Also, I am unsure what you mean by v2.8, as you can see in your comment we are dealing with v2.2 and v0.27.
I am upgrading from v2.7
to v2.8
of the Dfareporting
service, which is included in the google/apiclient-services
- sorry, missed that in the report.
Makes sense! Thank you.
I found the issue. The problem is durationType
is an actual API field, whereas the library looks for the prepending of Type
to any complex variable (see the discovery API).
I've submitted PR #1310 to fix this. Please run your application with the fix and let me know if it works. You can do that by changing your composer.json
via the composer command:
composer require "google/apiclient:dev-issue-1308 as v2.2.0"
I can confirm your PR solves the issue - thanks a lot for the quick fix! 🚀
Hey,
while upgrading from
v2.7
tov2.8
I've noticed that parsing of the API response in this codefails with error
when trying to parse on this object from the API response:
It seems to think that key
duration
is sort of a complex object inGoogle_Model::mapTypes
and fails to find a proper$propertyClass
in line 113.v2.7
works fine.We're using this set of google libs:
Am I missing something?