Title: Transcoding Error Improvements · Issue #441 · googleapis/python-api-core · GitHub
Open Graph Title: Transcoding Error Improvements · Issue #441 · googleapis/python-api-core
X Title: Transcoding Error Improvements · Issue #441 · googleapis/python-api-core
Description: python-api-core/google/api_core/path_template.py Lines 319 to 322 in fe617c2 raise ValueError( "Request {} does not match any URL path template in available HttpRule's {}".format( request_kwargs, [opt["uri"] for opt in http_options] ) Th...
Open Graph Description: python-api-core/google/api_core/path_template.py Lines 319 to 322 in fe617c2 raise ValueError( "Request {} does not match any URL path template in available HttpRule's {}".format( request_kwargs, [...
X Description: python-api-core/google/api_core/path_template.py Lines 319 to 322 in fe617c2 raise ValueError( "Request {} does not match any URL path template in available HttpRule's {}".format( req...
Opengraph URL: https://github.com/googleapis/python-api-core/issues/441
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Transcoding Error Improvements","articleBody":"https://github.com/googleapis/python-api-core/blob/fe617c205918a3e4dfddeb06123e70540898032e/google/api_core/path_template.py#L319-L322\r\n\r\nThe 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.\r\n\r\n```\r\nfrom google.cloud import compute_v1\r\n\r\nproject = \"project-XXX\"\r\nzone = \"us-central1-a\"\r\n\r\ninstance_groups_list_instances_request_resource = compute_v1.InstanceGroupsListInstancesRequest()\r\ninstance_groups_list_instances_request_resource.instance_state = \"RUNNING\"\r\ninstance_groups_client = compute_v1.InstanceGroupsClient()\r\n\r\ninstance_groups_list = instance_groups_client.list_instances(project=project, zone=zone, instance_groups_list_instances_request_resource=instance_groups_list_instances_request_resource)\r\n\r\nfor instance in instance_groups_list:\r\n print(instance.name, instance.labels)\r\n```\r\n","author":{"url":"https://github.com/parthea","@type":"Person","name":"parthea"},"datePublished":"2022-09-13T21:08:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/441/python-api-core/issues/441"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5725d57f-a7b2-b667-c598-a5cd64fcae10 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DE4:27C942:4A47F:60CAE:6A4D7B80 |
| html-safe-nonce | e01102721a10348de1f84d3c298035491e85f6bc5b744f82c2d907bcf88b2193 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REU0OjI3Qzk0Mjo0QTQ3Rjo2MENBRTo2QTREN0I4MCIsInZpc2l0b3JfaWQiOiI1MDI5NDYxNjExMTMyNjcwNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d8d2f9ce2b935ad18bc3cbad4e8c3c72a6acdd3249c676fc58f7bffd53688e31 |
| hovercard-subject-tag | issue:1372009085 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-api-core/441/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0dd9d17ea9d7ac5ca133afdeace770646c20f9a54a4a5f19c8a27abe2a649a16/googleapis/python-api-core/issues/441 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0dd9d17ea9d7ac5ca133afdeace770646c20f9a54a4a5f19c8a27abe2a649a16/googleapis/python-api-core/issues/441 |
| og:image:alt | python-api-core/google/api_core/path_template.py Lines 319 to 322 in fe617c2 raise ValueError( "Request {} does not match any URL path template in available HttpRule's {}".format( request_kwargs, [... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | parthea |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f8e15305e2ab58890ca84b830615e375f5df303cf471cafcba0c08272981be3 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-api-core git https://github.com/googleapis/python-api-core.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992456 |
| octolytics-dimension-repository_nwo | googleapis/python-api-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992456 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-api-core |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8608b0750fc35e283e5ec5b094bff942d7a0e197 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width