- User that I am using in this setup has a role which was assigned a read and write access to stages.
- I have tried also with ACCOUNTADMIN role user, which had the same error as the above user.
- create an
.envfile, put variables according to.env.example - login to Google CLI using the doc from Google, click here.
- run
node index.jsornpm start - Error we get is:
Error: Error: USER does not have storage.objects.get access to the Google Cloud Storage object. Permission 'storage.objects.get' denied on resource (or it may not exist). file=test.json, real file=REST_OF_PATH
- create an
.envfile, put variables according to.env.example - create a
conf.jsonfile where Google credentials are put. - add
GOOGLE_APPLICATION_CREDENTIALSvariable in.envfile which should be the path to above createdconf.jsonfile.- E.g.
GOOGLE_APPLICATION_CREDENTIALS=./conf.js
- E.g.
- run
node index.jsornpm start - Error we get is:
AxiosError: Request failed with status code 404 file=test.json, real file=REST_OF_PATH