Title: Confusing exception with GET methods and request bodies · Issue #126 · cloudendpoints/endpoints-python · GitHub
Open Graph Title: Confusing exception with GET methods and request bodies · Issue #126 · cloudendpoints/endpoints-python
X Title: Confusing exception with GET methods and request bodies · Issue #126 · cloudendpoints/endpoints-python
Description: If a method is defined with http_method GET and the method has a message or resource container as the request body, and that request body has fields which aren't in the resource container, a strange and confusing exception arises. Repro ...
Open Graph Description: If a method is defined with http_method GET and the method has a message or resource container as the request body, and that request body has fields which aren't in the resource container, a strang...
X Description: If a method is defined with http_method GET and the method has a message or resource container as the request body, and that request body has fields which aren't in the resource container, a st...
Opengraph URL: https://github.com/cloudendpoints/endpoints-python/issues/126
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Confusing exception with GET methods and request bodies","articleBody":"If a method is defined with http_method GET and the method has a message or resource container as the request body, and that request body has fields which aren't in the resource container, a strange and confusing exception arises.\r\n\r\nRepro by cloning https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/standard/endpoints-frameworks-v2/echo/main.py and changing 'POST' to 'GET'\r\n\r\n``` File \"/usr/local/google/home/rhd/appflex/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py\", line 1025, in pretty_print_config_to_json\r\n descriptor = self.get_openapi_dict(services, hostname)\r\n File \"/usr/local/google/home/rhd/appflex/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py\", line 1011, in get_openapi_dict\r\n return self.__api_openapi_descriptor(services, hostname=hostname)\r\n File \"/usr/local/google/home/rhd/appflex/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py\", line 915, in __api_openapi_descriptor\r\n security_definitions)\r\n File \"/usr/local/google/home/rhd/appflex/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py\", line 726, in __method_descriptor\r\n path)\r\n File \"/usr/local/google/home/rhd/appflex/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py\", line 589, in __request_message_descriptor\r\n method_id)\r\n File \"/usr/local/google/home/rhd/appflex/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py\", line 543, in __params_descriptor\r\n params.append(self.__body_parameter_descriptor(method_id))\r\n File \"/usr/local/google/home/rhd/appflex/python-docs-samples/appengine/standard/endpoints-frameworks-v2/echo/lib/endpoints/openapi_generator.py\", line 365, in __body_parameter_descriptor\r\n self.__request_schema[method_id])\r\nKeyError: 'echo.echo'\r\n```","author":{"url":"https://github.com/inklesspen","@type":"Person","name":"inklesspen"},"datePublished":"2017-11-29T02:04:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/126/endpoints-python/issues/126"}
| 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:4d2bf4b5-327e-8b11-d651-9e87c5ead2de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C6FC:26A272:C56BFB:11BF7BB:6A4E4944 |
| html-safe-nonce | 1dca31bbada654c579a20d204d208a60b161d80aaa32b905723c39f15dff7b3e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNkZDOjI2QTI3MjpDNTZCRkI6MTFCRjdCQjo2QTRFNDk0NCIsInZpc2l0b3JfaWQiOiI0OTU3MDE4NDM3NTM0NTAxMTg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | be268f26a9a2b8b7464f744d0bd66a0b2101292e6a0720dcd8376f65eea15f7d |
| hovercard-subject-tag | issue:277604073 |
| 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/cloudendpoints/endpoints-python/126/issue_layout |
| twitter:image | https://opengraph.githubassets.com/781f4b72fbd5678ae8b98653697234215e82988e15be0223ee08410951bf5799/cloudendpoints/endpoints-python/issues/126 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/781f4b72fbd5678ae8b98653697234215e82988e15be0223ee08410951bf5799/cloudendpoints/endpoints-python/issues/126 |
| og:image:alt | If a method is defined with http_method GET and the method has a message or resource container as the request body, and that request body has fields which aren't in the resource container, a strang... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | inklesspen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudendpoints/endpoints-python git https://github.com/cloudendpoints/endpoints-python.git |
| octolytics-dimension-user_id | 19231370 |
| octolytics-dimension-user_login | cloudendpoints |
| octolytics-dimension-repository_id | 65349604 |
| octolytics-dimension-repository_nwo | cloudendpoints/endpoints-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 65349604 |
| octolytics-dimension-repository_network_root_nwo | cloudendpoints/endpoints-python |
| 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 | e8506f6d0538364886e3f0153c154c410965e70d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width