Product: PowerShell Universal Version: 2.3.1
I’ve seen multiple instances of this error in forum lookup, but it doesn’t seem to show any resolution to this problem in most of these cases. I am starting jobs via API call, and the main script will also start up some subscripts. Some jobs are failing with the error “Error executing job: Did not receive port from client process”. There does not seem to be any rhyme or reason to the errors, meaning that if I run my test to start a batch of jobs I can have all success except for one run, or the majority of the script runs will fail out on another run.
Per what I saw in one of the other threads, I enabled job debugging and did my best to capture the section of code after one job erroring to another job starting. Hopefully this will be of help for finding the problem.