Title: YouTube Reporting media().download(...) 400 content breaks HttpError._get_reason · Issue #225 · googleapis/google-api-python-client · GitHub
Open Graph Title: YouTube Reporting media().download(...) 400 content breaks HttpError._get_reason · Issue #225 · googleapis/google-api-python-client
X Title: YouTube Reporting media().download(...) 400 content breaks HttpError._get_reason · Issue #225 · googleapis/google-api-python-client
Description: From the discover tools, media().download(...) is triggering a request to https://youtubereporting.googleapis.com/v1/media/test?alt=json which is returning a 400 for me with the following content: [{ "error": { "code": 400, "message": "I...
Open Graph Description: From the discover tools, media().download(...) is triggering a request to https://youtubereporting.googleapis.com/v1/media/test?alt=json which is returning a 400 for me with the following content: ...
X Description: From the discover tools, media().download(...) is triggering a request to https://youtubereporting.googleapis.com/v1/media/test?alt=json which is returning a 400 for me with the following content: ...
Opengraph URL: https://github.com/googleapis/google-api-python-client/issues/225
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"YouTube Reporting media().download(...) 400 content breaks HttpError._get_reason","articleBody":"From the discover tools, `media().download(...)` is triggering a request to `https://youtubereporting.googleapis.com/v1/media/test?alt=json` which is returning a 400 for me with the following content:\n\n```\n[{\n \"error\": {\n \"code\": 400,\n \"message\": \"Invalid value for query parameter 'alt'. It must be set to \\\"media\\\".\",\n \"errors\": [\n {\n \"message\": \"Invalid value for query parameter 'alt'. It must be set to \\\"media\\\".\",\n \"domain\": \"global\",\n \"reason\": \"badRequest\"\n }\n ],\n \"status\": \"INVALID_ARGUMENT\"\n }\n}\n]\n```\n\nThe contents of the response are put into an `HttpError` in `HttpRequest.execute` but the `_get_reason` expects `{\"error\": ...}` directly instead of `[{\"error\": ...}]` so it is crashing with \n\n```\n\u003ctype 'str'>: (\u003ctype 'exceptions.TypeError'>, TypeError('list indices must be integers, not str',))\n```\n\nI'm not sure if there is a valid reason to have a list of errors and the client code should support it or if the server code should return a single error with the \"errors\" subelement filled in (as it is).\n","author":{"url":"https://github.com/AlexRiina","@type":"Person","name":"AlexRiina"},"datePublished":"2016-05-05T18:17:40Z","url":"https://github.com/googleapis/google-api-python-client/issues/225"}
| 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:5bbaacbd-0515-1246-c245-116e27a69ebb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D7E0:1652B0:3830EC:4B9689:6B0089D8 |
| html-safe-nonce | abf25609f37c03e28f03653fdf00b74021cb749e318236fd5510c4956008da53 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0UwOjE2NTJCMDozODMwRUM6NEI5Njg5OjZCMDA4OUQ4IiwidmlzaXRvcl9pZCI6IjI4ODU2MTkwMzEzODgyMjgwNTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0a67dd6103c900a22922c0f7165d5fe492bb810f3fa599069c3cd813360fd2fa |
| hovercard-subject-tag | issue:153290982 |
| 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/google-api-python-client/225/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ff6a2028aac516cee632be21711f153780e577d867695507d7d03a77cd2cf612/googleapis/google-api-python-client/issues/225 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ff6a2028aac516cee632be21711f153780e577d867695507d7d03a77cd2cf612/googleapis/google-api-python-client/issues/225 |
| og:image:alt | From the discover tools, media().download(...) is triggering a request to https://youtubereporting.googleapis.com/v1/media/test?alt=json which is returning a 400 for me with the following content: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AlexRiina |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4d3d8e50f02c1d7bf86d5acfa1d3bfe9366abd6528a6b429eb07a168429d2b61 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-api-python-client git https://github.com/googleapis/google-api-python-client.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 15749269 |
| octolytics-dimension-repository_nwo | googleapis/google-api-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 15749269 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-api-python-client |
| 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 | db758f8e02b8257935fb03edf81a3e76eb3abd11 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width