Repository navigation
Conversation
jobs.getQueryResults answers 404 "Not found: Job" for any job outside the US/EU multi-regions unless `location` is passed. bigquery_query never sent it, and its opaque pageToken only carried jobId + the API token, so page 2+ failed for every dataset in a single region (e.g. southamerica-east1) while page 1 — returned inline by jobs.query — worked. Seen in production: plp-optimizer's funnel extraction for montecarlo (southamerica-east1) failed with 404 on `queries/<job>?pageToken=...` as soon as a chunk's response no longer fit in one page. - queryOnePage returns jobReference.location; the tool encodes it into nextPageToken and passes it back on the page fetch - getQueryResults takes `location`; both polling loops pass it too - tokens issued before this change (two parts) still decode
deco-hosting
Bot
requested a deployment
to
preview/pr-557/airtable
October 8, 2026 19:51
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/blog-generator
October 8, 2026 19:52
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/content-scraper
October 8, 2026 19:52
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/deco-llm
October 8, 2026 19:52
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/deco-news-weekly-digest
October 8, 2026 19:52
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/discord-read
October 8, 2026 19:52
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/google-analytics
October 8, 2026 19:52
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/google-big-query
October 8, 2026 19:52
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/google-calendar
October 8, 2026 19:52
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/google-calendar-sa
October 8, 2026 19:52
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/google-drive
October 8, 2026 19:52
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/google-meet
October 8, 2026 19:52
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/google-search-console
October 8, 2026 19:52
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/google-sheets
October 8, 2026 19:53
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/google-slides
October 8, 2026 19:53
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/google-tag-manager
October 8, 2026 19:53
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/google-workspace
October 8, 2026 19:53
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/meta-ads
October 8, 2026 19:53
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/nanobanana
October 8, 2026 19:53
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/object-storage
October 8, 2026 19:53
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/pandadoc
October 8, 2026 19:53
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/perplexity
October 8, 2026 19:53
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/registry
October 8, 2026 19:53
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/slack-mcp
October 8, 2026 19:54
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/vtex-docs
October 8, 2026 19:54
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/whatsappagent
October 8, 2026 19:54
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/youtube-channel-admin
October 8, 2026 19:54
In progress
deco-hosting
Bot
requested a deployment
to
preview/pr-557/youtube-search
October 8, 2026 19:54
In progress
This branch is being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
bigquery_querypages throughjobs.getQueryResultsbut never sendslocation. BigQuery requires it for jobs outside the US/EU multi-regions and otherwise answers 404 "Not found: Job". Page 1 works becausejobs.queryreturns it inline, but every page after that fails for datasets in a single region.Production case: plp-optimizer's funnel extraction for Monte Carlo (
montecarlo-analytics.analytics_305041776,southamerica-east1). Once a 3-day chunk's response stopped fitting in one page, the chunk failed with:The extraction deletes a day before rewriting it, so this left holes in the tenant's funnel store. They were recovered by re-running one day at a time.
What
queryOnePagereturnsjobReference.location.nextPageToken(jobId\napiToken\nlocation) and passes it togetQueryResultson the next call.getQueryResultsacceptslocation, and both polling loops (queryAndWait,queryOnePage) pass it too.Tests
bun testingoogle-big-query: 15 pass. The new tests cover:location=southamerica-east1and keeps it in the token for page 3;Root
checkpasses forgoogle-big-query. Themcp-studiotype errors also occur onmainand are unrelated.Summary by cubic
Fixes
bigquery_querypagination returning 404 "Not found: Job" for jobs outside the US/EU multi-regions (e.g.southamerica-east1).jobs.getQueryResultsrequireslocation, but the tool never sent it; page 1 worked becausejobs.queryreturns it inline, so every page after that failed once a result set spanned multiple pages.Bug Fixes
queryOnePagenow returns the job'slocation, which is embedded in the opaque token and passed togetQueryResultson page fetches and in both polling loops.Written for commit 3bef087. Summary will update on new commits.