former2 icon indicating copy to clipboard operation
former2 copied to clipboard

Generate Uncaught

Open oscar-dario-pabon opened this issue 4 years ago • 3 comments

Hi!

Nice tool, but when I press the button Generate, throw the error:

mappings.js:1920 Uncaught (in promise) TypeError: Cannot read property 'toUpperCase' of undefined at mappings.js:1920 at Array.map () at tfToPulumiProp (mappings.js:1920) at mappings.js:309 at Array.forEach () at processPulumiParameter (mappings.js:300) at outputMapPulumi (mappings.js:2357) at compileOutputs (mappings.js:4118) at app.js:878 at new Promise () (anonymous) @ mappings.js:1920 tfToPulumiProp @ mappings.js:1920 (anonymous) @ mappings.js:309 processPulumiParameter @ mappings.js:300 outputMapPulumi @ mappings.js:2357 compileOutputs @ mappings.js:4118 (anonymous) @ app.js:878 regenerateOutputs @ app.js:876 (anonymous) @ app.js:870 dispatch @ jquery-3.2.1.min.js:3 q.handle @ jquery-3.2.1.min.js:3 Promise.then (async) (anonymous) @ app.js:870 dispatch @ jquery-3.2.1.min.js:3 q.handle @ jquery-3.2.1.min.js:3

Best regards.

senneko

oscar-dario-pabon avatar Feb 20 '21 02:02 oscar-dario-pabon

Hey @senneko,

Thanks for raising!

This is an unusual error and I can't determine how this would happen, however I've placed some extra logging in to attempt to determine this further. Could you please perform the exact same actions to get this error and paste the details of the "Key Parsing Error" if it occurs (removing any sensitive info)?

iann0036 avatar Feb 20 '21 22:02 iann0036

Hi!

I tried again and send you the images:

former2_1

former2_2

Best regards.

senneko

oscar-dario-pabon avatar Feb 23 '21 20:02 oscar-dario-pabon

Hey @senneko,

Thanks for the update. I can see the error is coming from an empty key within a map somewhere (which is something I've never seen before!).

I've pushed an adjustment that should hopefully let that be a permitted value. If it does work, could you provide the resource with the output that will contain something like the following (remove any sensitive values before posting):

-
    : "standard"

Note that this is not the correct format for any template, but I'll have to take a look at it to see how to fix it.

iann0036 avatar Feb 24 '21 06:02 iann0036