Product: PowerShell Universal
Version: 3.0.0-rtm1 Beta (nighly build - 2481738775)
I have a dashboard from previous Universal PowerShell that I am moving to V3.
This is a simple page that just controlls the script I have in automation, and I can invoke the scripts from this page and it keeps track of my daily runs.
I have a button here that invokes the scripts I wish to run, but this now gives throws an error.
I have a toast telling me that I have the right Id for the script in my event data value, so this looks ok.
Code for the invoke job:
New-UdGrid -Container -spacing 2 -content {
New-UdGrid -Item -SmallSize 8 -content {
$scriptColumns = @(
New-UdTableColumn -Property Name -Title Name -Filter
New-UdTableColumn -Property Id -Title Id -Filter
New-UdTableColumn -Property FullPath -Title FullPath -Filter
New-UdTableColumn -Property CreatedTime -Title CreatedTime -Filter
New-UDTableColumn -Property Task -Title Task -Render {
New-UDButton -Text "Run Script" -OnClick {
Show-UdToast -Message "Starting script with Id: $($EventData.Id)"
Invoke-PSUScript -id $EventData.Id -AppToken $PSUAppToken
} -size small
}
)
New-UdTable -data $scriptList -Columns $scriptColumns -Dense -Title "Script List"
}
}
This throws the following error in my dashboard log:
Status(StatusCode="Unknown", Detail="Exception was thrown by handler.", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1655060650.925000000","description":"Error received from peer ipv6:[::1]:51183","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1068,"grpc_message":"Exception was thrown by handler.","grpc_status":2}")
An error occurred: Status(StatusCode="Unknown", Detail="Exception was thrown by handler.", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1655060650.925000000","description":"Error received from peer ipv6:[::1]:51183","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1068,"grpc_message":"Exception was thrown by handler.","grpc_status":2}")
Endpoint: 1226621b-9c30-4c0a-aa89-24435faa653a
Session: dfda6e3d-6ae2-4710-bc5a-190afd610f7d, User:
Stack Trace:
- Status(StatusCode="Unknown", Detail="Exception was thrown by handler.", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1655060650.925000000","description":"Error received from peer ipv6:[::1]:51183","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1068,"grpc_message":"Exception was thrown by handler.","grpc_status":2}") at 1226621b-9c30-4c0a-aa89-24435faa653a:152
- 1226621b-9c30-4c0a-aa89-24435faa653a:150
- 9858c929-44b9-4392-98ae-a9b7f0ccdea8:111