Open tundragon opened 1 year ago
Thanks for reporting this issue. I'm going to transfer this issue to the repository for the code generator that produces the sample code: https://github.com/googleapis/python-essential-contacts/blob/main/samples/generated_samples/essentialcontacts_v1_generated_essential_contacts_service_list_contacts_async.py#L47
page_result = client.list_contacts(request=request)
should be
page_result = await client.list_contacts(request=request)
Environment details
python --version
Python 3.10.10pip --version
pip 23.0google-cloud-essential-contacts
version:pip show google-cloud-essential-contacts
Name: google-cloud-essential-contacts Version: 1.1.1 Summary: Essential Contacts API client library Home-page: https://github.com/googleapis/python-essential-contacts Author: Google LLC Author-email: googleapis-packages@google.com License: Apache 2.0 Location: /home/splash/.local/lib/python3.8/site-packages Requires: google-api-core, proto-plusSteps to reproduce
Hello, I am trying to make this example work, but from what i have noticed, it lacks the
await client.list_contacts(request=request)
This example: https://github.com/googleapis/python-essential-contacts/blob/main/samples/generated_samples/essentialcontacts_v1_generated_essential_contacts_service_list_contacts_async.pyCode example
Here is my working code example:
Stack trace
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!