Skip to content

Transcoding error information missing in version 2.9.0 #440

Closed
@parthea

Description

@parthea

A regression was introduced in PR #428 where information is missing in the transcoding error message here.

Using the following code for google-cloud-compute

from google.cloud import compute_v1

project = "project-XXX"
zone = "us-central1-a"

instance_groups_list_instances_request_resource = compute_v1.InstanceGroupsListInstancesRequest()
instance_groups_list_instances_request_resource.instance_state = "RUNNING"
instance_groups_client = compute_v1.InstanceGroupsClient()

instance_groups_list = instance_groups_client.list_instances(project=project, zone=zone,  instance_groups_list_instances_request_resource=instance_groups_list_instances_request_resource)

for instance in instance_groups_list:
    print(instance.name, instance.labels)

Using google-api-core==2.8.2, the error message is

ValueError: Request {'zone': 'us-central1-a', 'project': 'project-XXX', 'instance_groups_list_instances_request_resource': {'instance_state': 'RUNNING'}, 'instance_group': ''} does not match any URL path template in available HttpRule's ['/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instance_group}/listInstances']

Using google-api-core==2.9.0, the error message is

Request {} does not match any URL path template in available HttpRule's ['/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instance_group}/listInstances']

Metadata

Metadata

Assignees

Labels

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