Open haythem opened 1 year ago
Hi @haythem thanks for filing the issue! This one is interesting. It looks like the following is failing with NRE
var tasks = transitivelyReachableCustomResources.Select(r => r.Urn.GetValueAsync(whenUnknown: ""));
var urns = await Task.WhenAll(tasks).ConfigureAwait(false);
Which suggests that r.Urn
is null
for one of the elements in transitivelyReachableCustomResources
. A potential fix is
var tasks = transitivelyReachableCustomResources.Select(resource =>
resource.Urn == null
? Task.FromResult("")
: resource.Urn.GetValueAsync(whenUnknown: "")
);
var urns = await Task.WhenAll(tasks).ConfigureAwait(false);
that guards against null
but the real question is why Urn
is null in the first place. cc @Frassle
Yeh Urn should never be null... we should track that down and fix it rather than changing transitivelyReachableCustomResources to handle null.
What happened?
Hello,
This particular behavior occurs only when setting a Cloudflare record with a value from DigitalOcean reserved ip output.
Steps to reproduce
Changing the value of the record to
Droplet.Ipv4Address
solves the problem.Expected Behavior
Create the Cloudflare record with the reserved ip output.
Actual Behavior
An exception is thrown. Sometimes the
pulumi up
command hangs (see screenshot below) for 3 to 5 minutes before throwing the error.Exception Thrown
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).