René's URL Explorer Experiment


Title: _next method creates a HTTP request with wrong content-length header · Issue #1403 · googleapis/google-api-python-client · GitHub

Open Graph Title: _next method creates a HTTP request with wrong content-length header · Issue #1403 · googleapis/google-api-python-client

X Title: _next method creates a HTTP request with wrong content-length header · Issue #1403 · googleapis/google-api-python-client

Description: Using google-api-python-client 2.2.0 and the GCP monitoring API, I received an error when retrieving the second page of a projects.timeSeries.query call: can't fetch data, reason: Invalid JSON payload received. Unexpected end of string. ...

Open Graph Description: Using google-api-python-client 2.2.0 and the GCP monitoring API, I received an error when retrieving the second page of a projects.timeSeries.query call: can't fetch data, reason: Invalid JSON payl...

X Description: Using google-api-python-client 2.2.0 and the GCP monitoring API, I received an error when retrieving the second page of a projects.timeSeries.query call: can't fetch data, reason: Invalid JSON ...

Opengraph URL: https://github.com/googleapis/google-api-python-client/issues/1403

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"_next method creates a HTTP request with wrong content-length header","articleBody":"Using google-api-python-client 2.2.0 and the GCP monitoring API, I received an error when retrieving the second page of a [projects.timeSeries.query](https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/query) call:\r\n\r\n```\r\ncan't fetch data, reason: Invalid JSON payload received. Unexpected end of string. Expected an object key or }.\r\n```\r\n\r\nTurns out that the content-length header is wrong and doesn't match with the body with the additional pageToken field.\r\n\r\nThe problem is in https://github.com/googleapis/google-api-python-client/blob/master/googleapiclient/discovery.py#L1285: the body is replaced, but the content-length stays the same because it is only updated at Request object creation time. I will prepare a PR for this.","author":{"url":"https://github.com/schweikert","@type":"Person","name":"schweikert"},"datePublished":"2021-06-07T11:40:34Z","url":"https://github.com/googleapis/google-api-python-client/issues/1403"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:90975eb7-f266-7ce5-12d8-62ceeb93d127
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8936:11EACE:4BADF2:674A6F:6B00CE25
html-safe-noncecd6bfa923623023be1ebdc9a3d388cf4f991a21361c553525fa0dca8ebf60e2c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTM2OjExRUFDRTo0QkFERjI6Njc0QTZGOjZCMDBDRTI1IiwidmlzaXRvcl9pZCI6IjQwNzI1ODQzNzA5Mjg1MzcxMjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac016daa30268a15ceae2f4ff01ff7e75ded4c2decb688211a23dcc7a53bfa3934
hovercard-subject-tagissue:913456662
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-api-python-client/1403/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8f2b7e1ccca17099329850bf42bfd27db3eb0fceea9fd8cad5ff1d5ccd10b253/googleapis/google-api-python-client/issues/1403
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8f2b7e1ccca17099329850bf42bfd27db3eb0fceea9fd8cad5ff1d5ccd10b253/googleapis/google-api-python-client/issues/1403
og:image:altUsing google-api-python-client 2.2.0 and the GCP monitoring API, I received an error when retrieving the second page of a projects.timeSeries.query call: can't fetch data, reason: Invalid JSON payl...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameschweikert
hostnamegithub.com
expected-hostnamegithub.com
None85bbdfe2b6ba16e234513bc6ceff5d848ef8449820c900692a2b4e67061931e5
turbo-cache-controlno-preview
go-importgithub.com/googleapis/google-api-python-client git https://github.com/googleapis/google-api-python-client.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id15749269
octolytics-dimension-repository_nwogoogleapis/google-api-python-client
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id15749269
octolytics-dimension-repository_network_root_nwogoogleapis/google-api-python-client
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4943239a6d2c591325dad6e5c313e1cafda877f6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/googleapis/google-api-python-client/issues/1403#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fissues%2F1403
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fissues%2F1403
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fgoogle-api-python-client
Reloadhttps://github.com/googleapis/google-api-python-client/issues/1403
Reloadhttps://github.com/googleapis/google-api-python-client/issues/1403
Reloadhttps://github.com/googleapis/google-api-python-client/issues/1403
googleapishttps://github.com/googleapis
google-api-python-clienthttps://github.com/googleapis/google-api-python-client
Codehttps://github.com/googleapis/google-api-python-client
Issues18 (18)https://github.com/googleapis/google-api-python-client/issues
Pull requests39 (39)https://github.com/googleapis/google-api-python-client/pulls
Discussionshttps://github.com/googleapis/google-api-python-client/discussions
Actionshttps://github.com/googleapis/google-api-python-client/actions
Projectshttps://github.com/googleapis/google-api-python-client/projects
Security and qualityhttps://github.com/googleapis/google-api-python-client/security
Insightshttps://github.com/googleapis/google-api-python-client/insights
https://github.com/googleapis/google-api-python-client
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-api-python-client/issues/1403
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-api-python-client/issues/1403
#1404https://github.com/googleapis/google-api-python-client/pull/1404
_next method creates a HTTP request with wrong content-length headerhttps://github.com/googleapis/google-api-python-client/issues/1403#top
#1404https://github.com/googleapis/google-api-python-client/pull/1404
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/schweikert
schweikerthttps://github.com/schweikert
on Jun 7, 2021https://github.com/googleapis/google-api-python-client/issues/1403#issue-913456662
projects.timeSeries.queryhttps://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.timeSeries/query
https://github.com/googleapis/google-api-python-client/blob/master/googleapiclient/discovery.py#L1285https://github.com/googleapis/google-api-python-client/blob/master/googleapiclient/discovery.py#L1285
schweikerthttps://github.com/schweikert
on Jun 7, 2021https://github.com/googleapis/google-api-python-client/issues/1403#event-4851503263
update content-length header for next page requests (fixes: googleapi…https://github.com/schweikert/google-api-python-client/commit/75fea9e0c9cae2179421a038f348f37c1541698f
googleapi…https://github.com/googleapis/google-api-python-client/issues/1403
https://docs.github.com/articles/closing-issues-via-commit-messages
75fea9ehttps://github.com/schweikert/google-api-python-client/commit/75fea9e0c9cae2179421a038f348f37c1541698f
fix: update content-length header for next pagehttps://github.com/schweikert/google-api-python-client/commit/1e2117d219e68707f794dd1a57ea1c2aa99103ac
https://docs.github.com/articles/closing-issues-via-commit-messages
1e2117dhttps://github.com/schweikert/google-api-python-client/commit/1e2117d219e68707f794dd1a57ea1c2aa99103ac
fix: update content-length header for next pagehttps://github.com/schweikert/google-api-python-client/commit/04bd2d86bfa9399b47cdcbaaa5d6de9ff7ca2472
https://docs.github.com/articles/closing-issues-via-commit-messages
04bd2d8https://github.com/schweikert/google-api-python-client/commit/04bd2d86bfa9399b47cdcbaaa5d6de9ff7ca2472
busunkim96https://github.com/busunkim96
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
on Jun 7, 2021https://github.com/googleapis/google-api-python-client/issues/1403#event-4852606478
schweikerthttps://github.com/schweikert
on Jun 8, 2021https://github.com/googleapis/google-api-python-client/issues/1403#event-4856062372
fix: update content-length header for next pagehttps://github.com/schweikert/google-api-python-client/commit/dd2de6eeb181eaa8e8c95214d1fe8654e07bdb39
https://docs.github.com/articles/closing-issues-via-commit-messages
dd2de6ehttps://github.com/schweikert/google-api-python-client/commit/dd2de6eeb181eaa8e8c95214d1fe8654e07bdb39
fix: update content-length header for next pagehttps://github.com/schweikert/google-api-python-client/commit/1e048d294be1b04917c363464d2344418e1342ff
https://docs.github.com/articles/closing-issues-via-commit-messages
1e048d2https://github.com/schweikert/google-api-python-client/commit/1e048d294be1b04917c363464d2344418e1342ff
fix: update content-length header for next pagehttps://github.com/schweikert/google-api-python-client/commit/6e3c230e72c2a10027b2735e513657e2999f0e5d
https://docs.github.com/articles/closing-issues-via-commit-messages
6e3c230https://github.com/schweikert/google-api-python-client/commit/6e3c230e72c2a10027b2735e513657e2999f0e5d
busunkim96https://github.com/busunkim96
completedhttps://github.com/googleapis/google-api-python-client/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1404https://github.com/googleapis/google-api-python-client/pull/1404
on Jun 8, 2021https://github.com/googleapis/google-api-python-client/issues/1403#event-4859112165
busunkim96https://github.com/busunkim96
on Jun 8, 2021https://github.com/googleapis/google-api-python-client/issues/1403#event-4859112342
fix: update content-length header for next page (#1404)https://github.com/googleapis/google-api-python-client/commit/8019f2f96abc6a4375873becb2f17b399f738654
#1404https://github.com/googleapis/google-api-python-client/pull/1404
https://docs.github.com/articles/closing-issues-via-commit-messages
8019f2fhttps://github.com/googleapis/google-api-python-client/commit/8019f2f96abc6a4375873becb2f17b399f738654
gcf-merge-on-greenhttps://github.com/apps/gcf-merge-on-green
on Jun 14, 2021https://github.com/googleapis/google-api-python-client/issues/1403#event-4885736203
chore: release 2.9.0 (#1408)https://github.com/googleapis/google-api-python-client/commit/864155068d934e93144d8642afe154f4e016321b
#1408https://github.com/googleapis/google-api-python-client/pull/1408
8641550https://github.com/googleapis/google-api-python-client/commit/864155068d934e93144d8642afe154f4e016321b
schweikerthttps://github.com/schweikert
on Jul 19, 2021https://github.com/googleapis/google-api-python-client/issues/1403#event-5039386424
Remove workaround for query_next misbehaving.https://github.com/GoogleCloudPlatform/gcpdiag/commit/4134d79f5d14f0f18246b011e96196f8aa1ce88c
4134d79https://github.com/GoogleCloudPlatform/gcpdiag/commit/4134d79f5d14f0f18246b011e96196f8aa1ce88c
Remove workaround for query_next misbehaving.https://github.com/GoogleCloudPlatform/gcpdiag/commit/ba014a50c799a6cc92c45c79e7f0c50ce5f22e04
ba014a5https://github.com/GoogleCloudPlatform/gcpdiag/commit/ba014a50c799a6cc92c45c79e7f0c50ce5f22e04
ropeckhttps://github.com/ropeck
on Feb 26, 2024https://github.com/googleapis/google-api-python-client/issues/1403#event-11927330636
Remove workaround for query_next misbehaving.https://github.com/GoogleCloudPlatform/gcpdiag/commit/ee9fee7a95a3b293e107f7814d32f8cd456b41f7
ee9fee7https://github.com/GoogleCloudPlatform/gcpdiag/commit/ee9fee7a95a3b293e107f7814d32f8cd456b41f7
Sign up for freehttps://github.com/signup?return_to=https://github.com/googleapis/google-api-python-client/issues/1403
Sign in to commenthttps://github.com/login?return_to=https://github.com/googleapis/google-api-python-client/issues/1403
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.https://github.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.