-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cant make signed url #877
Comments
Can you show where you gave auth configuration to gcloud? |
var projectId = 'idid'; // E.g. 'grape-spaceship-123' var gcloud = require('gcloud')({ |
Thanks, I was able to reproduce. Will keep you posted! |
I published a new version of To enable this method to work, you'll have to authenticate with a keyfile (JSON, pem, or p12). Related issue: #211 |
I'm able to download a file with the
I'm using a firebase-storage bucket, I have a json key file including Heres the relevant part of the stackstrace:
|
Try calling |
That works! and it's what the offical API docs say as well: https://googlecloudplatform.github.io/gcloud-node/#/docs/v0.36.0/storage/file?method=getSignedUrl ... but not this post: https://stackoverflow.com/questions/37824361/generate-download-url-after-successful-upload ... and not this post: https://stackoverflow.com/questions/37868485/secure-external-links-for-firebase-storage-on-nodejs-server-side Thanks a ton !! |
No problem! Thanks for sending the edits in to those posts! |
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/2812cef8-9404-4275-bb51-8c6dafc1bc6f/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 361273630 Source-Link: googleapis/googleapis@5477122
I get this
/home/server/node_modules/gcloud/node_modules/google-auto-auth/index.js:47
client.authorize(function (err) {
^
TypeError: undefined is not a function
at /home/server/node_modules/gcloud/node_modules/google-auto-auth/index.js:47:12
at addScope (/home/server/node_modules/gcloud/node_modules/google-auto-auth/index.js:113:5)
at callback (/home/server/node_modules/gcloud/node_modules/google-auto-auth/node_modules/goo
gle-auth-library/lib/auth/googleauth.js:41:5)
at /home/server/node_modules/gcloud/node_modules/google-auto-auth/node_modules/google-auth-l
ibrary/lib/auth/googleauth.js:124:9
at process._tickCallback (node.js:355:11)
when running this
The text was updated successfully, but these errors were encountered: