Repository navigation
getSignedUrl called synchronously ? #251
Copy link
Copy link
Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
Milestone
Description
Activity
I think this is the fault of our documentation. http://googlecloudplatform.github.io/gcloud-node/#/docs/v0.8.0/storage?method=getSignedUrl shows that it's returned synchronously, but that's actually not the case. You have to use it asynchronously as you've discovered.
Internally, a connection is required in order to generate a signed url, which is why it must be async. Sorry for the confusion and thanks for bringing attention to this-- I'll go and update the example.
Fixed here: 5def8e7
- addedapi: datastoreIssues related to the Datastore API.Issues related to the Datastore API.api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.and removedapi: datastoreIssues related to the Datastore API.Issues related to the Datastore API.
on Feb 2, 2015 - added a commit that references this issue
on Sep 15, 2022 - added a commit that references this issue
on Oct 13, 2022 13 remaining items
- added a commit that references this issue
on Jul 23, 2025 - added a commit that references this issue
on Jan 29, 2026 - added a commit that references this issue
on Feb 4, 2026 - added a commit that references this issue
on Feb 24, 2026 - added a commit that references this issue
on Mar 5, 2026 - added a commit that references this issue
on Mar 12, 2026 - added a commit that references this issue
on Mar 27, 2026
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.
I have a simple functions that returns a signed url :
I cannot understand how to call it synchronously.
The signed_url is always undefined but inside the callback the url_signed is correctly set.
So if I log the signed_url and the url_signed i get: