https://pulumi.com logo
Title
r

rhythmic-flag-11093

11/18/2020, 7:39 PM
@here Got this error when I added some code to deploy EC2 instances in my stack. Not the greatest TypeScript person so any help would be great 😞
Diagnostics:
  pulumi:pulumi:Stack (aws-xxx-local-abdul):
    The Pulumi runtime detected that 97 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.
I reverted all the changes but the error still persists. Any idea how to "reset"? The code I used was also commented saying it resolved promises lol ¯¯\_( ͡° ͜ʖ ͡°)_/¯
b

billowy-army-68599

11/18/2020, 9:11 PM
could you share your code?
h

hundreds-musician-51496

11/18/2020, 10:06 PM
I ran into this with the automation API and
npm ci
(reinstall everything) fixed the problem ...