Hi everyone, We are running Pulumi behind an API ...
# typescript
m
Hi everyone, We are running Pulumi behind an API as part of an internal self service tool. The application is running in Node and we use the LocalWorkspace class part of @pulumi/pulumi package in NPM. This means that whenever we have a failing pulumi program we will catch the exception and log it, but it will not exit the Node process. This is causing an issue for us, since whenever one of our Pulumi programs throws an exception all subsequent Pulumi programs will also fail. The program itself succeeds, but Pulumi always end the invocation with a "One or more errors occurred" error message. I have created a small repository demonstrating the issue. If you run this code at
<http://localhost:3001/faileverythreetimes>
it will throw an exception every three invocations. For that invocation it will fail with the error thrown from the Pulumi program, but for all subsequent calls it will fail with the "One or more errors occurred" error message. When we reboot the process/pod the same subsequent calls will complete successfully. https://github.com/knirkefritt/pulumiautomationbugspike Is this a know issue, and do you know of way to fix it (preferably not requiring us to restart the pod on every failed run)? Attached picture illustrates the problem
b
hey, please open a github issue
m
Ok, will do 🙂