Title: broken request.data.decode('utf-8') call · Issue #1965 · GoogleCloudPlatform/python-docs-samples · GitHub
Open Graph Title: broken request.data.decode('utf-8') call · Issue #1965 · GoogleCloudPlatform/python-docs-samples
X Title: broken request.data.decode('utf-8') call · Issue #1965 · GoogleCloudPlatform/python-docs-samples
Description: python-docs-samples/appengine/standard/pubsub/main.py Line 71 in da0d097 envelope = json.loads(request.data.decode('utf-8')) As written currently, the code returns the following error message, since request.data is empty. raise ValueErro...
Open Graph Description: python-docs-samples/appengine/standard/pubsub/main.py Line 71 in da0d097 envelope = json.loads(request.data.decode('utf-8')) As written currently, the code returns the following error message, sinc...
X Description: python-docs-samples/appengine/standard/pubsub/main.py Line 71 in da0d097 envelope = json.loads(request.data.decode('utf-8')) As written currently, the code returns the following error messa...
Opengraph URL: https://github.com/GoogleCloudPlatform/python-docs-samples/issues/1965
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"broken request.data.decode('utf-8') call","articleBody":"https://github.com/GoogleCloudPlatform/python-docs-samples/blob/da0d097e9e6e2ac1db53491553f7c985c2f7cbf2/appengine/standard/pubsub/main.py#L71\r\n\r\nAs written currently, the code returns the following error message, since request.data is empty.\r\n`raise ValueError(\"No JSON object could be decoded\")`\r\n\r\nIt works if written as\r\n`envelope = json.loads(request.get_data().decode('utf-8'))`","author":{"url":"https://github.com/cerebraljam","@type":"Person","name":"cerebraljam"},"datePublished":"2019-01-09T06:42:24Z","url":"https://github.com/GoogleCloudPlatform/python-docs-samples/issues/1965"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:c0c093cd-f816-9fbc-19c0-521029f54e5b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D452:1A1680:A2B199:DA7564:6AFE6376 |
| html-safe-nonce | 0dbfeaec42eff365145718d403b54cd92e43aca82f7a05dcde8bb88533f18344 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDUyOjFBMTY4MDpBMkIxOTk6REE3NTY0OjZBRkU2Mzc2IiwidmlzaXRvcl9pZCI6IjcyMzQ3MjI2NjI1NTI5NTM1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b541ec34b8c8d34f87aa442e271cb303d84dc2949855007a336f8347739b1526 |
| hovercard-subject-tag | issue:397232468 |
| 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/GoogleCloudPlatform/python-docs-samples/1965/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3fe908d4d5899b4107066c0873483c7d081c8ac9e060317b4ad1d68b70d317c3/GoogleCloudPlatform/python-docs-samples/issues/1965 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3fe908d4d5899b4107066c0873483c7d081c8ac9e060317b4ad1d68b70d317c3/GoogleCloudPlatform/python-docs-samples/issues/1965 |
| og:image:alt | python-docs-samples/appengine/standard/pubsub/main.py Line 71 in da0d097 envelope = json.loads(request.data.decode('utf-8')) As written currently, the code returns the following error message, sinc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cerebraljam |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/GoogleCloudPlatform/python-docs-samples git https://github.com/GoogleCloudPlatform/python-docs-samples.git |
| octolytics-dimension-user_id | 2810941 |
| octolytics-dimension-user_login | GoogleCloudPlatform |
| octolytics-dimension-repository_id | 35065876 |
| octolytics-dimension-repository_nwo | GoogleCloudPlatform/python-docs-samples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35065876 |
| octolytics-dimension-repository_network_root_nwo | GoogleCloudPlatform/python-docs-samples |
| 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 | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width