strapi-community/strapi-provider-upload-google-cloud-storage

Unable to upload image using Application Default Credentials.

Opened this issue · 0 comments

Describe the bug
Error uploading file to Google Cloud Storage: An error occurs when we try to retrieve the Bucket "bucket-name". Check if bucket exist on Google Cloud Platform.

To Reproduce
Steps to reproduce the behavior:

  1. Install npm i strapi-provider-upload-google-cloud-storage
  2. Go to plugin.js `module.exports = {
    upload: {
    provider: 'google-cloud-storage',
    providerOptions: {
    bucketName: '{bucket_name}',
    publicFiles: false,
    uniform: false,
    basePath: '',
    },
    },

}
`

  1. Using google cloud cli login using "Application Default Credentials".
  2. Set a project.
  3. Start the project
  4. Upload the any file.

Expected behavior
File should upload.

Screenshots
Screenshot 2024-04-22 at 3 18 00 PM

Desktop (please complete the following information):

  • OS: iOS
  • Browser chrome
  • Version 3.6.6 (node v14.21.3)