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 — bucket.getSignedUrl code in docs didn't work · Issue #195 · googleapis/google-cloud-node

bucket.getSignedUrl code in docs didn't work #195

New issue
Copy link
New issue
Copy link
Closed
Closed
bucket.getSignedUrl code in docs didn't work#195
Copy link
Assignees
yoshi-automation
Labels
🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.
Milestone
Storage Stable

Description

@marcgel
marcgel
opened on Sep 8, 2014
Issue body actions

Copied this code from storage docs, tried with node interactive prompt, and expected it to work.

var gcloud = require('gcloud');
var storage = gcloud.storage;
var bucket = new storage.Bucket({ bucketName: 'example-bucket' });
var signedUrl = bucket.getSignedUrl({
  action: 'read',
  expires: Math.round(Date.now() / 1000) + (60 * 60 * 24 * 14), // 2 weeks.
  resource: 'test.jpg'
});
TypeError: Cannot read property 'private_key' of null
    at Bucket.getSignedUrl (/home/<my-home-dir>/node_modules/gcloud/lib/storage/index.js:288:50)
    at repl:1:24
    at REPLServer.self.eval (repl.js:110:21)
    at repl.js:249:20
    at REPLServer.self.eval (repl.js:122:7)
    at Interface.<anonymous> (repl.js:239:12)
    at Interface.emit (events.js:95:17)
    at Interface._onLine (readline.js:202:10)
    at Interface._line (readline.js:531:8)
    at Interface._ttyWrite (readline.js:760:14)

Activity

Next
  1. marcgel
    added
    docs
    on Sep 8, 2014
  2. stephenplusplus commented on Sep 8, 2014

    @stephenplusplus
    stephenplusplus
    on Sep 8, 2014
    Contributor
    More actions

    The fix for this is actually coming soon: #164

    The doc updates are included in the pull request.

  3. silvolu commented on Sep 8, 2014

    @silvolu
    silvolu
    on Sep 8, 2014
    Contributor
    More actions

    Merged that fix.

  4. rakyll
    closed this as completedon Sep 9, 2014
  5. jgeewax
    added
    api: storageIssues related to the Cloud Storage API.
    on Feb 2, 2015
  6. jgeewax
    added this to the Storage Stable milestone on Feb 2, 2015
  7. yoshi-automation
    added
    triage meI really want to be triaged.
    🚨This issue needs some love.
    on Apr 6, 2020
  8. JustinBeckwith
    assigned
    yoshi-automation
    on Feb 1, 2021
  9. sofisl
    added a commit that references this issue on Sep 27, 2022

    docs: update links in contrib guide (#195)

    49274ea
  10. sofisl
    added 5 commits that reference this issue on Oct 11, 2022

    fix(deps): update dependency google-gax to ^0.25.0 (#195)

    b832108

    fix(deps): update dependency @google-cloud/common to ^0.32.0

    6bf8f65

    chore: release 2.4.0 (#195)

    73d66c4

    chore: release 4.2.5 (#195)

    9e75063

    fix(deps): update dependency google-gax to ^0.25.0 (#195)

    12e8f82
  11. 44 remaining items

  12. GautamSharda
    added a commit that references this issue on Feb 26, 2026

    chore(deps): update dependency eslint-config-prettier to v3 (#195)

    df4bd36
  13. codyoss
    added a commit that references this issue on Mar 5, 2026

    chore(deps): update dependency mocha to v8 (#195)

    299e6be
  14. sofisl
    added 2 commits that reference this issue on Mar 5, 2026

    chore: bump dev deps and use native promisify (#195)

    c84bdeb

    build: move system and samples test from Node 10 to Node 12 (#195)

    092262c
  15. codyoss
    added a commit that references this issue on Mar 12, 2026

    chore(cloud-rad): delete api-extractor config (#195)

    51a91ba
  16. GautamSharda
    added 3 commits that reference this issue on Mar 12, 2026

    chore: remove tslint.json (#195)

    2b1fea1

    chore: remove tslint.json (#195)

    2bc57df

    chore: move mocha options to mocha.opts (#195)

    c9d763b
  17. sofisl
    added a commit that references this issue on Mar 17, 2026

    chore: update links in github issue templates (#195)

    205cf3e
  18. thiyaguk09
    added a commit that references this issue on Mar 18, 2026

    fix: remove --no-timeouts (googleapis#195)

    ece2e9e
  19. GautamSharda
    added 2 commits that reference this issue on Mar 23, 2026

    Fix bad encoded filter (#195)

    2574fb5

    Fix bad encoded filter (#195)

    cc4b037
  20. feywind
    added a commit that references this issue on Mar 27, 2026

    chore: require node 8 for samples (#195)

    59411a0
  21. shivanee-p
    added a commit that references this issue on Mar 27, 2026

    Fix bad encoded filter (#195)

    06583fe
  22. thiyaguk09
    added a commit that references this issue on May 5, 2026

    Fix bad encoded filter (googleapis#195)

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

Metadata

Metadata

Assignees

  • @yoshi-automation
    yoshi-automation

Labels

🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    • Storage Stable

    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.