Skip to content
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

Unable to upload image using Application Default Credentials. #187

Open
akshat-khosya opened this issue Apr 22, 2024 · 0 comments
Open

Unable to upload image using Application Default Credentials. #187

akshat-khosya opened this issue Apr 22, 2024 · 0 comments

Comments

@akshat-khosya
Copy link

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant