https://pulumi.com logo
Title
b

better-shampoo-48884

04/07/2021, 6:47 AM
So.. using automation with kuberenetes, I'm getting tons of "unhandled rejections" every time it fails.. should I be wrapping my pulumi program resource operations in try/catch?
🙌 1
example of one of hundreds of messages:
unhandled rejection: CONTEXT(1636): transferDeps(resource:testsec[kubernetes:<http://spv.no/v2beta1:AzureKeyVaultSecret|spv.no/v2beta1:AzureKeyVaultSecret>], status, undefined)
STACK_TRACE:
Error
    at Object.debuggablePromise (c:\<path>\node_modules\@pulumi\pulumi\runtime\debuggable.js:69:75)
    at Object.transferProperties (c:\<path>\node_modules\@pulumi\pulumi\runtime\rpc.js:89:78)
    at c:\<path>\node_modules\@pulumi\pulumi\runtime\resource.js:389:33
    at Generator.next (<anonymous>)
    at c:\<path>\node_modules\@pulumi\pulumi\runtime\resource.js:21:71
    at new Promise (<anonymous>)
    at __awaiter (c:\<path>\node_modules\@pulumi\pulumi\runtime\resource.js:17:12)
    at prepareResource (c:\<path>\node_modules\@pulumi\pulumi\runtime\resource.js:331:12)
    at Object.registerResource (c:\<path>\node_modules\@pulumi\pulumi\runtime\resource.js:213:24)
    at new Resource (c:\<path>\node_modules\@pulumi\pulumi\resource.js:215:24)
w

white-balloon-205

04/07/2021, 7:11 AM
There have been some fixes to address promise leaks recently - cc @lemon-agent-27707 who may be able to help.
b

better-shampoo-48884

04/07/2021, 7:28 AM
using 2.24.1 if it helps.. can technically try 3.0.0-beta1 if you think that might be better
l

lemon-agent-27707

04/09/2021, 7:04 PM
Can you post a full stack trace and the program that is causing it?