https://pulumi.com logo
Title
w

wet-noon-14291

10/12/2021, 1:39 PM
Anyone that has seen
TypeError: Invalid Version
in an automation project and knows what to do? The weird thing is that I only get it for every second request.
TypeError: Invalid Version: 
    at new SemVer (/src/api/node_modules/@pulumi/pulumi/node_modules/semver/semver.js:332:11)
    at LocalWorkspace.<anonymous> (/src/api/node_modules/@pulumi/pulumi/automation/localWorkspace.js:561:29)
    at Generator.next (<anonymous>)
    at fulfilled (/src/api/node_modules/@pulumi/pulumi/automation/localWorkspace.js:18:58)
I first thought it might be because mismatch of installed pulumi version and pulumi npm package, but that doesn't seem to be the case. Running 3.14.0 and have 3.14.0 installed in my app now.
ok, so this is rather strange. When this line is executed on my machine, https://github.com/pulumi/pulumi/blob/1ed3445ed4a7952f8ebd1f717d75a2d64911107b/sdk/nodejs/automation/localWorkspace.ts#L590 I do get empty version back, but only on every second call. Anyone knows why this might be?
What even makes this stranger that it works every time when make a call to the app I have with the REST plugin in code, but from the browser it fails every second time basically.
What's even more fun is that it works 100% when I run it in debug mode.