-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Description
Steps to reproduce
$ Invoke-RestMethod -Uri https://httpbin.org/robots.txt
Expected behavior
Return content. Or at least behave the same as in PowerShell 5.0.
Actual behavior
Invoke-RestMethod : Unexpected character encountered while parsing value: U. Path '', line 0, position 0.
At line:1 char:1
- Invoke-RestMethod -Uri https://httpbin.org/robots.txt
-
- CategoryInfo : NotSpecified: (:) [Invoke-RestMethod], JsonReaderException - FullyQualifiedErrorId : Newtonsoft.Json.JsonReaderException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
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.9
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1powershell 6.0.0-alpha.9-1
ed-ilyin and zipcube
Metadata
Metadata
Assignees
Labels
WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues