Invoke-RestMethod: Status(StatusCode="Unknown", Detail="Exception was thrown by handler.", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1657028909.749102440","description":"Error received from peer ipv4:127.0.0.1:36875","file":"/var/local/git/grpc/src/core/lib/surface/call.cc","file_line":1068,"grpc_message":"Exception was thrown by handler.","grpc_status":2}")
I’ve tried the same using the Computername Param and the AppToken param but I’m facing the following issue:
Invoke-RestMethod: Cannot retrieve the dynamic parameters for the cmdlet. Call failed with status code 404 (Not Found): GET https://psu.mysite.com/api/v1/script/5/parameter
at , : line 6
at , : line 1
Can you do me a favor and try running Get-PSUScript in your environment from within your API?
I want to see what is returned. From what I can tell, it doens’t make much sense that it could return the script but then fail to look up the parameters.
I’m particuarlly looking for script with the ID 5 (unless you’ve changed the scripts).