Skip to content
This repository was archived by the owner on Feb 13, 2026. It is now read-only.
This repository was archived by the owner on Feb 13, 2026. It is now read-only.

client.quotas() error #21

Description

@tmegow
  • 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

  1. Ensure authentication is properly setup (I'm using a Service Account)
  2. Execute code below, substituting "my-project" for a valid projectID

Code example

from google.cloud import dns
client = dns.Client(project="my-project")
quotas = client.quotas()  # API request

image

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'

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: dnsIssues related to the googleapis/python-dns API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions