https://pulumi.com logo
Title
n

nice-guitar-97142

03/08/2021, 1:37 PM
am i missing something with the
contentType
property? does a
StringAsset
have to be an octet stream?
t

tall-librarian-49374

03/08/2021, 1:42 PM
I don’t think this is related to the
contentType
. Do you get this error during preview, update, or refresh?
n

nice-guitar-97142

03/08/2021, 1:46 PM
both
preview
and
update
, before the changes are even generated. I removed the
contentType
so that it would default to octet-stream which allowed the preview to generate but then ran into the same error on an actual update
here is the stack trace
error: Running program '/Users/blah/source/blah/unicode/infra' failed with an unhandled exception:
    Error: Invalid asset encountered when unmarshaling resource property
        at deserializeProperty (/Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/rpc.js:437:31)
        at deserializeProperty (/Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/rpc.js:506:23)
        at deserializeProperty (/Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/rpc.js:463:32)
        at Object.deserializeProperties (/Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/rpc.js:126:24)
        at /Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/resource.js:524:43
        at Generator.next (<anonymous>)
        at /Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
        at new Promise (<anonymous>)
        at __awaiter (/Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
        at resolveOutputs (/Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/resource.js:519:12)
    error: update failed
t

tall-librarian-49374

03/08/2021, 1:52 PM
Could you open an issue for that?
n

nice-guitar-97142

03/08/2021, 2:11 PM
looks like using a
FileAsset
worked. I will open an issue.