You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS type and version: macOS Mojave (10.14.6 (18G5033))
Python version: Python 3.7.4
pip version: pip 20.2.3 from /Users/thadmegow/dev/google-cloud-dns/.venv/lib/python3.7/site-packages/pip (python 3.7)
google-cloud-dns version:
Version: 0.32.0
Summary: Google Cloud DNS API client library
Home-page: https://github.com/googleapis/python-dns
Author: Google LLC
Author-email: googleapis-packages@google.com
License: Apache 2.0
Location: /Users/thadmegow/dev/google-cloud-dns/.venv/lib/python3.7/site-packages
Requires: google-cloud-core
Required-by:
Steps to reproduce
Ensure authentication is properly setup (I'm using a Service Account)
Execute code below, substituting "my-project" for a valid projectID
Code example
fromgoogle.cloudimportdnsclient=dns.Client(project="my-project")
quotas=client.quotas() # API request
Stack trace
Traceback (most recent call last):
File "google-cloud-dns-search.py", line 3, in <module>
quotas = client.quotas() # API request
File "/Users/thadmegow/dev/google-cloud-dns/.venv/lib/python3.7/site-packages/google/cloud/dns/client.py", line 100, in quotas
key: int(value) for key, value in resp["quota"].items() if key != "kind"
File "/Users/thadmegow/dev/google-cloud-dns/.venv/lib/python3.7/site-packages/google/cloud/dns/client.py", line 100, in <dictcomp>
key: int(value) for key, value in resp["quota"].items() if key != "kind"
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
macOS Mojave (10.14.6 (18G5033))Python 3.7.4pip 20.2.3 from /Users/thadmegow/dev/google-cloud-dns/.venv/lib/python3.7/site-packages/pip (python 3.7)google-cloud-dnsversion:Steps to reproduce
Code example
Stack trace