Any tips on how to debug this? `PULUMI_DEBUG_PROMI...
# typescript
g
Any tips on how to debug this?
PULUMI_DEBUG_PROMISE_LEAKS
-> this variable is not very helpful
Copy code
The Pulumi runtime detected that 468 promises were still active
  
  at the time that the process exited. There are a few ways that this can occur:
  
    * Not using `await` or `.then` on a Promise returned from a Pulumi API
  
    * Introducing a cyclic dependency between two Pulumi Resources
  
    * A bug in the Pulumi Runtime
  
  Leaving promises active is probably not what you want. If you are unsure about
  
  why you are seeing this message, re-run your program with the `PULUMI_DEBUG_PROMISE_LEAKS`
  
  environment variable. The Pulumi runtime will then print out additional
  
  debug information about the leaked promises.
l
We'd need a lot more context to help. Where are you seeing this? Runtime, during unit tests, during package build, somewhere else? What does the extra output from PULUMI_DEBUG_PROMISE_LEAKS say and why does it not help? How are you exiting your app/test/program, does the flow there explicitly skip the promise-resolution period? You could look for anywhere in a promise or apply that could throw a serious runtime error, or anywhere that just quits the app/test/program without waiting for normal finishing.
s
I am witnessing this error too. It is able to be replicated with the latest version of awsx. I create an
awsx.ec2.VPC
resource and then an
eks.Cluster
resource. For the
parent
option in
ResourceOptions
of the cluster, i set the created vpc. Pulumi doesn’t like this and i get the runtime detected promises error Edit: created an issue: https://github.com/pulumi/pulumi-awsx/issues/1209