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 — SyntaxError on authentication command · Issue #1387 · googleapis/google-cloud-node

SyntaxError on authentication command #1387

New issue
Copy link
New issue
Copy link
Closed
Closed
SyntaxError on authentication command#1387
Copy link
Assignees
stephenplusplus
Labels
type: questionRequest for information or clarification. Not an issue.

Description

@leonardojobim
leonardojobim
opened on Jun 16, 2016
Issue body actions

The simple code below throws a SyntaxError.

var fs = require('fs');

var googleCloudAuthFile = __dirname + '/google_cloud_auth.json';
fs.accessSync(googleCloudAuthFile, fs.F_OK);

var gcloud = require('gcloud')({
  projectId: 'project-id',
  keyFilename: googleCloudAuthFile
});
/vagrant/parse/city-chat-web/node_modules/readable-stream/lib/_stream_readable.js:117
};
 ^

SyntaxError: Unexpected token ;
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/vagrant/parse/city-chat-web/node_modules/readable-stream/readable.js:6:28)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)

Activity

  1. leonardojobim commented on Jun 16, 2016

    @leonardojobim
    leonardojobim
    on Jun 16, 2016
    Author
    More actions

    I created an empty project with only gcloud-node installed and the authentication worked. It also successfully made a safeSearch request.

    I think the error in this issue can be an conflict with other package. The packages of the real project are:

    "dependencies": {
        "apn": "^1.7.5",
        "async": "^1.5.2",
        "express": "^4.13.4",
        "gcloud": "^0.36.0",
        "node-gcm": "^0.14.3",
        "parse-server": "^2.1.6",
        "request": "^2.69.0"
      }
  2. stephenplusplus commented on Jun 16, 2016

    @stephenplusplus
    stephenplusplus
    on Jun 16, 2016
    Contributor
    More actions

    The code from the first post worked for me. Is it possible to get a sample repo that I can clone to see the failure? The details of the Vagrant VM and how Node was installed might be relevant as well.

  3. leonardojobim commented on Jun 20, 2016

    @leonardojobim
    leonardojobim
    on Jun 20, 2016
    Author
    More actions

    @stephenplusplus If you run the same code with the dependences listed above, you'll see the error.
    Please declare those dependences in package.json and run npm install. Then run the code.
    The version of the Node.js is 5.5.0 and it was installed through Node Version Manager (https://github.com/creationix/nvm).

  4. stephenplusplus commented on Jun 20, 2016

    @stephenplusplus
    stephenplusplus
    on Jun 20, 2016
    Contributor
    More actions

    I've tried this, but the script still executes normally.

  5. stephenplusplus commented on Jun 22, 2016

    @stephenplusplus
    stephenplusplus
    on Jun 22, 2016
    Contributor
    More actions

    @Leo-One try Node's stable release, v6.

  6. stephenplusplus commented on Jun 27, 2016

    @stephenplusplus
    stephenplusplus
    on Jun 27, 2016
    Contributor
    More actions

    I'm going to close this out since I can't reproduce. I don't believe this is an issue with our library, but something environment-specific. If you're still stuck, feel free to keep sharing, and I'll gladly help however I can.

  7. stephenplusplus
    closed this as completedon Jun 27, 2016
  8. stephenplusplus
    added
    type: questionRequest for information or clarification. Not an issue.
    on Jun 27, 2016
  9. JustinBeckwith
    assigned
    stephenplusplus
    on Feb 1, 2021
  10. miguelvelezsa
    added a commit that references this issue on Jul 23, 2025

    fix: update system test to use monorepo where appropriate (#1387)

    21b5e8e
  11. sofisl
    added 2 commits that reference this issue on Feb 26, 2026

    fix: unknown errors should not be retried (#1388)

    This issue will close once commit dc10da6 is merged into the 'main' branch.
    dc10da6

    chore: release 5.8.1 (#1389)

    This issue will close once commit e195312 is merged into the 'main' branch.
    e195312
  12. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    fix: extend timeouts for deleting snapshots, backups and tables (#1387)

    d590033

    fix: extend timeouts for deleting snapshots, backups and tables (#1387)

    2618cb3
  13. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    fix: extend timeouts for deleting snapshots, backups and tables (#1387)

    4d5292d
  14. thiyaguk09
    added a commit that references this issue on May 5, 2026

    fix: extend timeouts for deleting snapshots, backups and tables (goog…

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

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

type: questionRequest for information or clarification. Not an issue.

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.