Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Invoke-WebRequest progress drifts to the right #3202

Copy link
Copy link
@latkin

Description

@latkin
Issue body actions

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 
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.