Title: An error was reported getting the regions list (Invalid enum value SERVICE_ATTACHMENTS) · Issue #111 · googleapis/python-compute · GitHub
Open Graph Title: An error was reported getting the regions list (Invalid enum value SERVICE_ATTACHMENTS) · Issue #111 · googleapis/python-compute
X Title: An error was reported getting the regions list (Invalid enum value SERVICE_ATTACHMENTS) · Issue #111 · googleapis/python-compute
Description: Thanks for stopping by to let us know something could be better! PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response. Plea...
Open Graph Description: Thanks for stopping by to let us know something could be better! PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. ...
X Description: Thanks for stopping by to let us know something could be better! PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. ...
Opengraph URL: https://github.com/googleapis/python-compute/issues/111
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"An error was reported getting the regions list (Invalid enum value SERVICE_ATTACHMENTS)","articleBody":"Thanks for stopping by to let us know something could be better!\r\n\r\n**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.\r\n\r\nPlease run down the following list and make sure you've tried the usual \"quick fixes\":\r\n\r\n - Search the issues already opened: https://github.com/googleapis/google-api-python-client/issues\r\n - Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python\r\n\r\nIf you are still having issues, please be sure to include as much information as possible:\r\n\r\n#### Environment details\r\n\r\n - OS type and version:\r\n - Python version: `Python 3.8.6`\r\n - pip version: `pip 20.2.1`\r\n - `google-api-python-client` version: `Version: 2.18.0`\r\n\r\n#### Steps to reproduce\r\n\r\n 1. Create RegionsClient\r\n 2. Get regions list\r\n\r\n#### Code example\r\n\r\n```python\r\n# example\r\nregions_client = RegionsClient.from_service_account_info(info=info)\r\nregions_client.list(project=project_id)\r\n```\r\n\r\n#### Stack trace\r\n```\r\n# example\r\nTraceback (most recent call last):\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/django/core/handlers/exception.py\", line 47, in inner\r\n response = get_response(request)\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/django/core/handlers/base.py\", line 181, in _get_response\r\n response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n File \"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/contextlib.py\", line 75, in inner\r\n return func(*args, **kwds)\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/django/views/decorators/csrf.py\", line 54, in wrapped_view\r\n return view_func(*args, **kwargs)\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/django/views/generic/base.py\", line 70, in view\r\n return self.dispatch(request, *args, **kwargs)\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/rest_framework/views.py\", line 509, in dispatch\r\n response = self.handle_exception(exc)\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/rest_framework/views.py\", line 469, in handle_exception\r\n self.raise_uncaught_exception(exc)\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/rest_framework/views.py\", line 480, in raise_uncaught_exception\r\n raise exc\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/rest_framework/views.py\", line 506, in dispatch\r\n response = handler(request, *args, **kwargs)\r\n File \"/Users/jiangjiebai/Bai/Project/Jumpserver/jumpserver/apps/xpack/plugins/cloud/api.py\", line 35, in get\r\n validity, error = account.is_valid(return_tuples=True)\r\n File \"/Users/jiangjiebai/Bai/Project/Jumpserver/jumpserver/apps/xpack/plugins/cloud/models.py\", line 60, in is_valid\r\n return self.provider_instance.is_valid(return_tuples=return_tuples)\r\n File \"/Users/jiangjiebai/Bai/Project/Jumpserver/jumpserver/apps/xpack/plugins/cloud/providers/gcp.py\", line 33, in is_valid\r\n return self.get_regions()\r\n File \"/Users/jiangjiebai/Bai/Project/Jumpserver/jumpserver/apps/xpack/plugins/cloud/providers/gcp.py\", line 29, in get_regions\r\n regions = self.regions_client.list(project=self.project)\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/google/cloud/compute_v1/services/regions/client.py\", line 467, in list\r\n response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py\", line 142, in __call__\r\n return wrapped_func(*args, **kwargs)\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py\", line 66, in error_remapped_callable\r\n return callable_(*args, **kwargs)\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/google/cloud/compute_v1/services/regions/transports/rest.py\", line 202, in list\r\n return compute.RegionList.from_json(\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/proto/message.py\", line 374, in from_json\r\n Parse(payload, instance._pb, ignore_unknown_fields=ignore_unknown_fields)\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/google/protobuf/json_format.py\", line 434, in Parse\r\n return ParseDict(js, message, ignore_unknown_fields, descriptor_pool)\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/google/protobuf/json_format.py\", line 454, in ParseDict\r\n parser.ConvertMessage(js_dict, message)\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/google/protobuf/json_format.py\", line 485, in ConvertMessage\r\n self._ConvertFieldValuePair(value, message)\r\n File \"/Users/jiangjiebai/.virtualenv/corePy3.8/lib/python3.8/site-packages/google/protobuf/json_format.py\", line 597, in _ConvertFieldValuePair\r\n raise ParseError('Failed to parse {0} field: {1}.'.format(name, e))\r\ngoogle.protobuf.json_format.ParseError: Failed to parse items field: Failed to parse quotas field: Invalid enum value SERVICE_ATTACHMENTS for enum type google.cloud.compute.v1.Quota.Metric...\r\n\r\nI checked v2.18.0 to add SERVICE_ATTACHMENTS option in file (compute.v1.json), but switch to V2.17.0 also reported the same error\r\n\r\n```\r\n\r\nMaking sure to follow these steps will guarantee the quickest resolution possible.\r\n\r\nThanks!\r\n","author":{"url":"https://github.com/baijiangjie","@type":"Person","name":"baijiangjie"},"datePublished":"2021-08-30T07:26:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/111/python-compute/issues/111"}
| 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:82d29f2e-52dd-1265-8871-7e82e1d5f7fa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5EC:2F874:84B72E:BCACF5:6A4E7BBB |
| html-safe-nonce | 0c65465c108c92326ff745bd1f55c39917b25be90cc33a6b0b7a190964af7418 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUVDOjJGODc0Ojg0QjcyRTpCQ0FDRjU6NkE0RTdCQkIiLCJ2aXNpdG9yX2lkIjoiODY3MjI4OTkzODg0OTI5OTM4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 32cee3099f4913e2524df49f3c2b1b6b335198bf434c701cef9f07f3ae53cc61 |
| hovercard-subject-tag | issue:982966257 |
| 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-compute/111/issue_layout |
| twitter:image | https://opengraph.githubassets.com/04cddb8a866b7be36116581222655058ae34511c94a50137fb833e1d481d9a39/googleapis/python-compute/issues/111 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/04cddb8a866b7be36116581222655058ae34511c94a50137fb833e1d481d9a39/googleapis/python-compute/issues/111 |
| og:image:alt | Thanks for stopping by to let us know something could be better! PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | baijiangjie |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-compute git https://github.com/googleapis/python-compute.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 328021905 |
| octolytics-dimension-repository_nwo | googleapis/python-compute |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 328021905 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-compute |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width