Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Transcoding Error Improvements #441

Copy link
Copy link

Description

@parthea
Issue body actions

raise ValueError(
"Request {} does not match any URL path template in available HttpRule's {}".format(
request_kwargs, [opt["uri"] for opt in http_options]
)

The transcoding error above should be improved to provide more helpful information when there is a transcoding issue. For example, given the code below which is missing the instance_group parameter, the error message should say something along the lines of missing required parameter instance_group instead of the cryptic error Request {} does not match any URL path template in available HttpRule's ['/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instance_group}/listInstances']. In addition, it's not desirable to echo the parameters in the error message.

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)
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.Important 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.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.