Unable to upload image using Application Default Credentials.
Opened this issue · 0 comments
akshat-khosya commented
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:
- Install
npm i strapi-provider-upload-google-cloud-storage
- Go to plugin.js `module.exports = {
upload: {
provider: 'google-cloud-storage',
providerOptions: {
bucketName: '{bucket_name}',
publicFiles: false,
uniform: false,
basePath: '',
},
},
}
`
- Using google cloud cli login using "Application Default Credentials".
- Set a project.
- Start the project
- Upload the any file.
Expected behavior
File should upload.
Desktop (please complete the following information):
- OS: iOS
- Browser chrome
- Version 3.6.6 (node v14.21.3)