You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BigQuery job body included in many requests that don't need it #647
Filed internally at b/21557935, moving to public here:
Ryan, looking at some of our API logs for an unrelated issue, I see gcloud-node is including a giant query string of an entire job configuration for BigQuery API methods that do not require it, such as getQueryResults(). Is there any reason for this? Looking at the gcloud-node code, it seems like simply removing it from all the GET call request options should greatly reduce request size.
Your linked code is exactly what confused me to write the bug. The call to makeReq_() for an existing query passes the entire options as a query string, substantially growing the size of the request. I think you can just null out the query string instead, but I'm concerned I've missed some important context.
Activity
stephenplusplus commentedon Jun 8, 2015
Thanks for posting here!
We will just need to filter what we pass to the API, example: https://github.com/GoogleCloudPlatform/gcloud-node/blob/01ec51f5b37becccdc20130c6389e8201cc1f389/lib/bigquery/index.js#L374
weslem commentedon Jun 9, 2015
Your linked code is exactly what confused me to write the bug. The call to
makeReq_()for an existing query passes the entireoptionsas a query string, substantially growing the size of the request. I think you can just null out the query string instead, but I'm concerned I've missed some important context.stephenplusplus commentedon Jun 10, 2015
@weslem I sent #652 to fix the issue with
getQueryResults. Which other API calls did you find that were passing the object?weslem commentedon Jun 10, 2015
#652 LGTM; that was the only place I found.
stephenplusplus commentedon Jun 10, 2015
Awesome, thanks for catching this bug for us! I'm going to create an issue to make sure we plug any leaks that may exist in our other methods.
Oh, and feel free to report right to us here on the repo next time :)
chore(deps): update dependency sinon to v13 (#647)
chore(deps): update dependency sinon to v13 (#647)
chore: migrate to owl bot (#647)
fix(deps): use google-gax v3.5.2 (#647)
chore: release 3.2.0 (#647)
chore: release 4.1.3 (#647)
17 remaining items
Enable staleness and pull request size bots on repository (#647)
migrate code from googleapis/cloud-profiler-nodejs (#7087)
chore(deps): update dependency cpy-cli to v4 (#647)
build(node): add new jsteam + enforce branches up-to-date (#1451) (#647)
build(node): add new jsteam + enforce branches up-to-date (#1451) (#647)
test: Skip test where large request returns an error (#647)
build(node): add new jsteam + enforce branches up-to-date (#1451) (#647)
fix(docs): move to new client docs URL (#647)
feat: support apiEndpoint override (#647)
chore(deps): update dependency @types/multiparty to v4 (#647)
docs(samples): refactor the quickstart to match the new rubric (googl…
docs: mention templates in contributing section of README (#647)
docs: mention templates in contributing section of README (#647)
docs: mention templates in contributing section of README (#647)
docs: mention templates in contributing section of README (googleapis…