GoogleCloudPlatform / node-red-contrib-google-cloud

Node-RED nodes for Google Cloud Platform
Apache License 2.0
90 stars 57 forks source link

Google Cloud Storage writing to Versioned Buckets #106

Open paulleroyza opened 2 years ago

paulleroyza commented 2 years ago

I'm unable to write to versioned buckets, getting the error: writeStream error: my-sa@my-project.iam.gserviceaccount.com does not have storage.objects.delete access to the Google Cloud Storage object.

Solution appears to be explicitly disabling the resumable flag as discussed here on the GCP node sample code: https://github.com/googleapis/google-cloud-node/issues/2611

kolban-google commented 2 years ago

Howdy ... I have updated the project to make "resumable" an explicit value of false ... see:

https://github.com/GoogleCloudPlatform/node-red-contrib-google-cloud/blob/master/gcs-write.js#L104

This should be present in 0.0.25 onwards. Have a go with this and let me know if that resolves the issue.

paulleroyza commented 2 years ago

Thank you, I'll rebuild my container and test