pulumi / pulumi-ai

223 stars 16 forks source link

Handle auth errors #11

Closed lukehoban closed 1 year ago

lukehoban commented 1 year ago

Currently, when there are no cloud credentials available, the pulumi-ai CLI will crash with an error like this:

> an s3 bucket
/Users/lukehoban/dd/pulumi-ai/node_modules/@grpc/grpc-js/build/src/call.js:31
    return Object.assign(new Error(message), status);
                         ^

<ref *1> Error: Resource monitor is terminating

This error should instead be handled and reported back to the user.

lukehoban commented 1 year ago

This appears to be caused by the issues captured in https://github.com/pulumi/pulumi/issues/10744 and https://github.com/pulumi/pulumi/issues/11163, which currently make it impossible to handle this error from within the application. This appears to be a bug that needs to be addressed in the underlying Node.js Automation API.