-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pulumi Automation API throws Grpc.Core.RpcException #126
Comments
Thanks for filing this. @Frassle as secondary, do you mind looking into this? |
I think what's happening is the dotnet inline program isn't waiting for all logs to write before telling the engine it's safe to shut down. That appears to be the case when the inline program throws an exception, less clear why you'd be seeing this for programs that don't error. |
I think this is happening for every operation we make Successful and Unsuccessful and maybe even for |
Yeh will keep looking, it's definitely a problem for error'd stacks so I'll get that fixed and then see if I can repro this for non-error stacks as well. |
Do you have any updates on this @Frassle ? |
No sorry, I'm not confident #127 is the right fix for this but this fell off my work list. I do mean to come back to this but it's probably gonna be a couple of weeks still as we work on some other stuff with deadlines. |
What happened?
I have a ASP.net core 7 project that uses the inline Pulumi automation API.
Example:
I use Sentry as Error tracking system. I'm getting a log of errors (16k in the last 24h) that I only partially understand. They seem benign.
The errors are not shown in the console and they are also not caught in a try catch block. My understanding is that in
pulumi-dotnet/sdk/Pulumi.Automation/WorkspaceStack.cs
Lines 676 to 779 in 26c4b09
UpAsync
has completed the server is destroyed before the client which generates this exception.Expected Behavior
Error is not generated if Pulumi
UpAsync
completed successfully.Steps to reproduce
Create a
LocalWorkspace
and then executeUpAsync
Catching the error is the tricky part. I can only see it being caught in Sentry. Maybe there is a different API one can consume to catch those unhandled exceptions.
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).
The text was updated successfully, but these errors were encountered: