GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cannot perform query with parentheses · Issue #372 · googleapis/google-cloud-node

cannot perform query with parentheses #372

New issue
Copy link
New issue
Copy link
Closed
Closed
cannot perform query with parentheses#372
Copy link
Assignees
ryanseys
Labels
🚨This issue needs some love.api: bigqueryIssues related to the BigQuery API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@ef7475
ef7475
opened on Feb 2, 2015
Issue body actions

Hello,
We are using gcloud with NodeJS server to perform queries a Google BigQuery db.
Our server runs on Amazon Beanstalk.

We are running the following query:

var bigquery = gcloud.bigquery({
  projectId: 'XXX',
  keyFilename: 'YYY'
});
var query = "SELECT COUNT(id) FROM AAA.BBB";
bigquery.query(query, function(err, rows) {
    if (err) {
      handleError(res,err);
    }
    else {
      res.send(200,rows);
    }
  });

it works fine on the development environment, but when installing on Beanstalk, we get the following error:

"errors": [
        {
            "domain": "global",
            "reason": "invalidQuery",
            "message": "Encountered \" \"%\" \"% \"\" at line 1, column 18.\nWas expecting:\n    <EOF> \n    ",
            "locationType": "other",
            "location": "query"
        }
    ],
    "code": 400,
    "message": "Encountered \" \"%\" \"% \"\" at line 1, column 18.\nWas expecting:\n    <EOF> \n    "

My guess is that somehow the parenthesis in the query are being escaped (because queries without parenthesis works ok). We cannot figure out how to solve this.

Your help will be appreciated.

Activity

Next
  1. jgeewax
    added
    api: bigqueryIssues related to the BigQuery API.
    on Feb 2, 2015
  2. jgeewax
    changed the title [-]cannot perform query with parentasis[/-] [+]cannot perform query with parentheses[/+] on Feb 2, 2015
  3. jgeewax
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Feb 2, 2015
  4. stephenplusplus commented on Feb 3, 2015

    @stephenplusplus
    stephenplusplus
    on Feb 3, 2015
    Contributor
    More actions

    I'm kind of lost on this one. The query is sent as a JSON payload in a POST request, so it's not being escaped. Since it's working locally but not in that environment, I'm not sure how to debug. Maybe @ryanseys has an idea.

  5. ryanseys commented on Feb 3, 2015

    @ryanseys
    ryanseys
    on Feb 3, 2015
    Contributor
    More actions

    I'll take a look at this.

  6. ef7475 commented on Feb 3, 2015

    @ef7475
    ef7475
    on Feb 3, 2015
    Author
    More actions

    Same code appears to work without errors now.
    It seems that sometime this morning it was fixed somewhere. I wonder where?

  7. ryanseys commented on Feb 3, 2015

    @ryanseys
    ryanseys
    on Feb 3, 2015
    Contributor
    More actions

    Oh good! I was just firing up a beanstalk instance to investigate but AWS
    documentation is really intense. If I had to guess I'm going to say AWS is
    the culprit here considering it works on our local machine no problem and
    we've made no underlying changes to our library.

    On Tuesday, February 3, 2015, ef7475 [email protected] wrote:

    Same code appears to work without errors now.
    It seems that sometime this morning it was fixed somewhere. I wonder where?

    —
    Reply to this email directly or view it on GitHub
    #372 (comment)
    .

  8. ryanseys
    closed this as completedon Feb 3, 2015
  9. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 7, 2020
  10. JustinBeckwith
    assigned
    ryanseys
    on Feb 1, 2021
  11. chingor13
    added a commit that references this issue on Aug 22, 2022

    chore: release 3.5.1 (#372)

    ee3e898
  12. sofisl
    added a commit that references this issue on Sep 16, 2022

    docs: add links to the CHANGELOG from the README.md for Java and Node (…

    9ebba4d
  13. sofisl
    added 2 commits that reference this issue on Oct 5, 2022

    docs: add links to the CHANGELOG from the README.md for Java and Node (…

    a6f0207

    docs: add links to the CHANGELOG from the README.md for Java and Node (…

    c567de2
  14. 30 remaining items

  15. miguelvelezsa
    added a commit that references this issue on Jan 28, 2026

    fix: include 'x-goog-request-params' header in requests (#372)

    8e0a5ea
  16. GautamSharda
    added 2 commits that reference this issue on Feb 2, 2026

    doc: synchronize README template (#372)

    0aedd34

    doc: synchronize README template (#372)

    57b15b4
  17. sofisl
    added a commit that references this issue on Feb 5, 2026

    fix: include 'x-goog-request-params' header in requests (#372)

    567f7fb
  18. GautamSharda
    added a commit that references this issue on Feb 5, 2026

    docs: use repo metadata to generate docs (#372)

    e46d88c
  19. sofisl
    added a commit that references this issue on Feb 17, 2026

    fix: include 'x-goog-request-params' header in requests (#372)

    5acd877
  20. GautamSharda
    added 3 commits that reference this issue on Feb 23, 2026

    docs: use repo metadata to generate docs (#372)

    62497e8

    chore(deps): update dependency gapic-tools to ^0.2.0 (#372)

    742bb75

    docs: use repo metadata to generate docs (#372)

    ed92317
  21. sofisl
    added a commit that references this issue on Feb 26, 2026

    build: fix codecov uploading on Kokoro (#372)

    bc09496
  22. GautamSharda
    added a commit that references this issue on Mar 5, 2026

    fix(deps): update dependency @google-cloud/common-grpc to ^0.10.0 (#372)

    0caf240
  23. sofisl
    added 2 commits that reference this issue on Mar 5, 2026

    chore: migrate code from googleapis/gcp-metadata (#53)

    fa9a454

    feat: include gapic and grafeas, add routing.proto, update protos (#372)

    fd4abd3
  24. GautamSharda
    added 2 commits that reference this issue on Mar 11, 2026

    refactor(ts): Added ts style fix for test/subscription.ts (#372)

    996a7b7

    build: use linkinator for docs test (#372)

    d2e25ca
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ryanseys
    ryanseys

Labels

🚨This issue needs some love.api: bigqueryIssues related to the BigQuery API.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.