Skip to content

Invoke-WebRequest progress drifts to the right #3202

@latkin

Description

@latkin

Steps to reproduce

On OSX

1..20 |%{ $null = Invoke-WebRequest 'https://www.google.com'; Start-Sleep -Milliseconds 250 }

Expected behavior

Progress/status is written for each request, in a static location.

Actual behavior

Progress/status appears to shift over by 3 or 4 columns after each request, leading to "drift" to the right.

This, coupled with #1625, causes significant usability issues for scripts that are doing repeated web requests, e.g. to process paginated API responses.

Impact would be lessened if there was a way to disable progress from Invoke-WebRequest but AFAIK that is not possible.

Screencap below:

screencap

Environment data

> $PSVersionTable
Name                           Value                                                            
----                           -----                                                            
PSVersion                      6.0.0-alpha                                                      
PSEdition                      Core                                                             
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                          
BuildVersion                   3.0.0.0                                                          
GitCommitId                    v6.0.0-alpha.16                                                  
CLRVersion                                                                                      
WSManStackVersion              3.0                                                              
PSRemotingProtocolVersion      2.3                                                              
SerializationVersion           1.1.0.1 

Metadata

Metadata

Assignees

Labels

Resolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions