Multiple Grpc.Core errors

Product: PowerShell Universal
Version: 4.2.21

Hey all,

I’m getting the below errors at the very end of one of my scripts but only when invoking from a dashboard (The script doesn’t really “finish” when running directly but it errors out correctly and doesn’t throw any of these errors). I am also getting a similar error but slightly different being throw 100s of times in the PSU log.

The errors that get thrown in the single script having the issue are these:

[information] at Grpc.Core.Internal.UnaryServerCallHandler`2.HandleCall(ServerRpcNew newRpc, CompletionQueueSafeHandle cq) 
[information] at Grpc.Core.Server.HandleCallAsync(ServerRpcNew newRpc, CompletionQueueSafeHandle cq, Action`2 continuation) 

The error being thrown in the general PSU log 100s of times is this:

Status(StatusCode="Cancelled", Detail="CANCELLED", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1729143862.397000000","description":"Error received from peer ipv6:[::1]:54186","file":"..\..\..\src\core\lib\surface\call.cc","file_line":953,"grpc_message":"CANCELLED","grpc_status":1}")

The errors that the problem script throw happen AFTER the very last line of the script, that just happens to be a string. "Script Completed!" kinda things.

I also noticed that in the general PSU log, just before each big block of the errors I am getting things like this:

[Error] [App-Service Delivery Dashboard] Object not found. 

# OR

[Error] [App-Service Delivery Dashboard] Cannot bind argument to parameter 'Job' because it is null. 

Not sure if they would have any effect on the errors I’m getting but just incase.

If anyone has any suggestions on what I could look at that would be amazing. I have seen a few posts about similar errors but there doesn’t seem to be a soluation or much information on them.

Thanks in advanced!