Closed MicZet closed 1 week ago
Hi @MicZet, Thanks for reporting this issue.
The request fails because it's unable to find the pollen
API in the cached directory: discovery cache.
As a workaround, you should be able to fetch the discovery document directly by setting static_discovery=False
in the following way:
service = build('pollen', version="v1", static_discovery=False)
This issue should be fixed once the artifacts are updated by the following PR https://github.com/googleapis/google-api-python-client/pull/2419 and explicitly setting static_discovery=False
won't be required once the discovery document for the API is available in the cached directory.
Thanks a lot @ohmayr this steps succeed and return proper value
and btw in newest version i see endpoint is available.
Thanks for stopping by to let us know something could be better!
Environment details
python --version
3.11.2pip --version
pip 23.0.1google-api-python-client
version:pip show google-api-python-client
2.133.0Steps to reproduce
Code example
Stack trace
Looking at https://developers.google.com/maps/documentation/pollen/reference/rest and comparing to other endpoints - attached script should work but unfortunately it isnt (error attached) looks like library doesn't support it?!