StanfordBioinformatics / trellis-mvp-functions

Trellis serverless data management framework for variant calling of VA MVP whole-genome sequencing data.
6 stars 1 forks source link

Error 403 when trying to add Personalis Sequencing JSON to database #45

Closed pbilling closed 1 year ago

pbilling commented 1 year ago

From trellis-create-blob-node-from-personalis-meta logs:

google.resumable_media.common.InvalidResponse: ('Request failed with status code', 403, 'Expected one of', <HTTPStatus.OK: 200>, <HTTPStatus.PARTIAL_CONTENT: 206>)

I'm guessing this is because I changed bucket permissions to be more restrictive.

pbilling commented 1 year ago

Giving the default compute service account Storage Object Viewer permission does not resolve the issue. Looking at these docs, 1st gen Cloud Functions used the App Engine service account. From my Cloud Functions console, I can see in the "Environment" column that my functions are 1st gen.

pbilling commented 1 year ago

Giving the App Engine service account Storage Object Viewer permission seems to have resolved the issue.