https://pulumi.com logo
p

polite-student-92901

04/24/2020, 6:11 AM
Hi Pulumi team, I'm keep getting this error message when I run
pulumi up
from my local for GCP project
Copy code
Diagnostics:
  gcp:storage:BucketObject (metadata-func-zip):
    error: Error uploading object metadata-func-zip-7361f3c: Post <https://www.googleapis.com/upload/storage/v1/b/source-prod-0b3010d/o?alt=json&name=metadata-func-zip-7361f3c&prettyPrint=false&uploadType=resumable&upload_id=AAANsUlDMiMgbtovO9tV-WBAxeoUNUIpdnXUep2V6FZYkqd-vNiOKgVOz-rtsmUhHuxDPC9ggFzORAocsOGtyEet_lg>: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
The source code is:
Copy code
const bucketObjectMetadata = new gcp.storage.BucketObject('metadata-func-zip', {
  bucket: sourceBucket.name,
  source: new pulumi.asset.AssetArchive({
    '.': new pulumi.asset.FileArchive('../functions/metadata')
  })
})
Anyone can help to resolve the error? Thanks.
w

white-balloon-205

04/24/2020, 1:34 PM
Huh - I haven’t seen that before. Looks like an error from GCP. Does it occur if you pass a simple
FileAsset
(small file)? Or is it only with that particular AssetArchive + FileArchive combo? Also - how large is the folder you are providing?
p

polite-student-92901

04/24/2020, 6:34 PM
Let me try only passing
FileAsset
to see if it works. Thanks for the advise,