-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
api: dnsIssues related to the Cloud DNS API.Issues related to the Cloud DNS API.backendtype: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Description
- internal image based on
python:3.6.3
3.6.3
- dns version 0.29.0
>>> from google.cloud import dns
>>> self.client = dns.Client(project='PROJECT_ID')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'self' is not defined
>>> client = dns.Client(project='PROJECT_ID')
>>> client.zone('zone_name', 'dns_name.com')
<google.cloud.dns.zone.ManagedZone object at 0x7f8285fac5f8>
>>> client.zone('zone_name', 'dns_name.com').exists()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.6/site-packages/google/cloud/dns/zone.py", line 285, in exists
query_params={'fields': 'id'})
File "/usr/local/lib/python3.6/site-packages/google/cloud/_http.py", line 293, in api_request
raise exceptions.from_http_response(response)
google.api_core.exceptions.BadRequest: 400 GET https://www.googleapis.com/dns/v1/projects/PROJECT_ID/managedZones/zone_name?fields=id: Request contains an invalid argument.
- See stacktrace
I've been running this exist
call on this zone and dns name for a few months now. Suddenly we are getting this breakage. I've check that the zone and dns exist in Cloud Console. Though you'd think either way it would return a better error? I've also checked that this isn't a new dns module version.
Metadata
Metadata
Assignees
Labels
api: dnsIssues related to the Cloud DNS API.Issues related to the Cloud DNS API.backendtype: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.