pulumi / pulumi-ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle auth errors

lukehoban opened this issue · comments

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.

This appears to be caused by the issues captured in pulumi/pulumi#10744 and pulumi/pulumi#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.