Job 1788151159205

Command: powershell -NoProfile -ExecutionPolicy Bypass -Command "$ErrorActionPreference='Stop';$root='C:\Users\ash\Documents\ShopeeApi';$c=Get-NetTCPConnection -LocalPort 8132 -State Listen -ErrorAction SilentlyContinue;if($c){Stop-Process -Id $c.OwningProcess -Force;Start-Sleep -Seconds 2};$py=(Get-Command python.exe -ErrorAction Stop).Source;$log=Join-Path $root 'data\logs';New-Item -ItemType Directory -Force -Path $log|Out-Null;Start-Process -FilePath $py -ArgumentList '-m','uvicorn','app.main:app','--host','127.0.0.1','--port','8132' -WorkingDirectory $root -WindowStyle Hidden -RedirectStandardOutput (Join-Path $log 'uvicorn-auto-ready.stdout.log') -RedirectStandardError (Join-Path $log 'uvicorn-auto-ready.stderr.log');Start-Sleep -Seconds 5;$r=Invoke-WebRequest -UseBasicParsing 'http://127.0.0.1:8132/openapi.json' -TimeoutSec 10;$j=$r.Content|ConvertFrom-Json;$has=$null -ne $j.paths.'/api/operations/ready-to-ship/auto-arrange';$listen=[bool](Get-NetTCPConnection -LocalPort 8132 -State Listen -ErrorAction SilentlyContinue);[pscustomobject]@{listen=$listen;openapi_status=$r.StatusCode;auto_ready_endpoint=$has;production_bridge_8765=[bool](Get-NetTCPConnection -LocalPort 8765 -State Listen -ErrorAction SilentlyContinue)}|ConvertTo-Json -Compress"
Directory: projects
Status: FAILED
Exit code: 1

Cancel Job Rerun Command Refresh

Error Summary

    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc 
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
 
---
Invoke-WebRequest : Unable to connect to the remote server
At line:1 char:695
+ ... econds 5;$r=Invoke-WebRequest -UseBasicParsing 'http://127.0.0.1:8132 ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc 
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand