[?1h=DEBUG:    2+  >>>> & $env:CAPTURE_SCRIPT

DEBUG:    1+  >>>> $captureWriter=[IO.StreamWriter]::new([Console]::OpenStandardError(),[Text.Encoding]::ASCII)

DEBUG:    2+  >>>> $captureWriter.AutoFlush=$true

DEBUG:    3+  >>>> [Console]::SetError($captureWriter)

DEBUG:   19+  >>>> $ErrorActionPreference = "Stop"

DEBUG:   20+  >>>> [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

DEBUG:   22+  >>>> $repo = "pingdotgg/t3code"

DEBUG:   23+  >>>> $baseUrl = if ($env:T3CODE_RELEASE_BASE_URL) { $env:T3CODE_RELEASE_BASE_URL.TrimEnd("/") } else { "http://127.0.0.1:43965/$repo/releases/download" }

DEBUG:   23+ $baseUrl = if ( >>>> $env:T3CODE_RELEASE_BASE_URL) { $env:T3CODE_RELEASE_BASE_URL.TrimEnd("/") } else { "http://127.0.0.1:43965/$repo/releases/download" }

DEBUG:   23+ $baseUrl = if ($env:T3CODE_RELEASE_BASE_URL) {  >>>> $env:T3CODE_RELEASE_BASE_URL.TrimEnd("/") } else { "http://127.0.0.1:43965/$repo/releases/download" }

DEBUG:   24+  >>>> $t3Home = if ($env:T3CODE_HOME) { $env:T3CODE_HOME } else { Join-Path $HOME ".t3" }

DEBUG:   24+ $t3Home = if ( >>>> $env:T3CODE_HOME) { $env:T3CODE_HOME } else { Join-Path $HOME ".t3" }

DEBUG:   24+ $t3Home = if ($env:T3CODE_HOME) {  >>>> $env:T3CODE_HOME } else { Join-Path $HOME ".t3" }

DEBUG:   25+  >>>> $binDir = if ($env:T3CODE_INSTALL_BIN_DIR) { $env:T3CODE_INSTALL_BIN_DIR } else { Join-Path $HOME ".local\bin" }

DEBUG:   25+ $binDir = if ( >>>> $env:T3CODE_INSTALL_BIN_DIR) { $env:T3CODE_INSTALL_BIN_DIR } else { Join-Path $HOME ".local\bin" }

DEBUG:   25+ $binDir = if ($env:T3CODE_INSTALL_BIN_DIR) {  >>>> $env:T3CODE_INSTALL_BIN_DIR } else { Join-Path $HOME ".local\bin" }

DEBUG:   27+  >>>> $binDir = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($binDir)

DEBUG:   34+  >>>> $terminal = -not [Console]::IsErrorRedirected -and $env:TERM -ne "dumb"

DEBUG:   35+  >>>> $interactive = $terminal -and $Host.UI.SupportsVirtualTerminal

DEBUG:   36+ if ( >>>> $interactive) {

DEBUG:   38+    >>>> $glyphs = -join [char[]](0x2588, 0x2580, 0x2584, 0x25A0, 0x00B7)

DEBUG:   39+    >>>> $encoding = [Console]::Error.Encoding

DEBUG:   40+    >>>> $interactive = $encoding.GetString($encoding.GetBytes($glyphs)) -eq $glyphs

DEBUG:   42+  >>>> $esc = [char]27

DEBUG:   43+  >>>> $reset = $bold = $muted = $accent = $green = ""

DEBUG:   43+ $reset =  >>>> $bold = $muted = $accent = $green = ""

DEBUG:   43+ $reset = $bold =  >>>> $muted = $accent = $green = ""

DEBUG:   43+ $reset = $bold = $muted =  >>>> $accent = $green = ""

DEBUG:   43+ $reset = $bold = $muted = $accent =  >>>> $green = ""

DEBUG:   44+ if ( >>>> $interactive -and -not $env:NO_COLOR) {

DEBUG:  105+  >>>> [Console]::Error.WriteLine("CAPTURE_DISPATCH terminal=$terminal interactive=$interactive mechanism=W encoding=$([Console]::Error.Encoding.WebName)")

DEBUG:  105+ [Console]::Error.WriteLine("CAPTURE_DISPATCH terminal=$terminal interactive=$interactive mechanism=W encoding=$( >>>> [Console]::Error.Encoding.WebName)")

CAPTURE_DISPATCH terminal=True interactive=False mechanism=W encoding=us-ascii
DEBUG:  107+  >>>> Fetch $env:CAPTURE_URL $env:CAPTURE_DEST -progress

DEBUG:   70+ function Fetch([string] $uri, [string] $destination, [switch] $progress)  >>>> {

DEBUG:   71+   if ( >>>> -not $progress -or -not $interactive) {

DEBUG:   72+      >>>> $ProgressPreference = if ($progress -and $terminal) { "Continue" } else { "SilentlyContinue" }

DEBUG:   72+     $ProgressPreference = if ( >>>> $progress -and $terminal) { "Continue" } else { "SilentlyContinue" }

DEBUG:   72+     $ProgressPreference = if ($progress -and $terminal) {  >>>> "Continue" } else { "SilentlyContinue" }

DEBUG:   73+      >>>> Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsing

[6n[?25l[6n[33;1mReading web response stream [[7m[27mDownloaded: 0 Bytes of 19 Bytes                                                         ][0m[1;1H[?12l[?25h[1;1H                                                                                                                        [1;1HDEBUG:  112+    >>>> [Console]::Error.WriteLine("EXCEPTION_TYPE=$($_.Exception.GetType().FullName)")

DEBUG:  112+   [Console]::Error.WriteLine("EXCEPTION_TYPE=$( >>>> $_.Exception.GetType().FullName)")

EXCEPTION_TYPE=Microsoft.PowerShell.Commands.HttpResponseException
DEBUG:  113+    >>>> [Console]::Error.WriteLine("ORIGINAL_STATUS=$([int]$_.Exception.Response.StatusCode)")

DEBUG:  113+   [Console]::Error.WriteLine("ORIGINAL_STATUS=$( >>>> [int]$_.Exception.Response.StatusCode)")

ORIGINAL_STATUS=504
DEBUG:  114+    >>>> [Console]::Error.WriteLine("STATUS_VALUE=$($_.Exception.Response.StatusCode.value__)")

DEBUG:  114+   [Console]::Error.WriteLine("STATUS_VALUE=$( >>>> $_.Exception.Response.StatusCode.value__)")

STATUS_VALUE=504
DEBUG:  115+    >>>> [Console]::Error.WriteLine("EXCEPTION=$($_.Exception.Message)")

DEBUG:  115+   [Console]::Error.WriteLine("EXCEPTION=$( >>>> $_.Exception.Message)")

EXCEPTION=Response status code does not indicate success: 504 (Gateway Timeout).
DEBUG:  116+    >>>> throw

DEBUG:  117+ } finally {  >>>> [Console]::Error.WriteLine("CAPTURE_CALLER_FINALLY") }

CAPTURE_CALLER_FINALLY
Invoke-WebRequest: /tmp/lead-32913-r1/evidence-capture/runs-20261110T104757.726561Z/P05-ascii-terminal-fallback/before/install.ps1:73
Line |
  73 |      Invoke-WebRequest -Uri $uri -OutFile $destination -UseBasicParsin …
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | synthetic HTTP 504 
