Title: Invoke-RestMethod started to fail in v6-beta.9 on a Windows 7 machine · Issue #5242 · PowerShell/PowerShell · GitHub
Open Graph Title: Invoke-RestMethod started to fail in v6-beta.9 on a Windows 7 machine · Issue #5242 · PowerShell/PowerShell
X Title: Invoke-RestMethod started to fail in v6-beta.9 on a Windows 7 machine · Issue #5242 · PowerShell/PowerShell
Description: This issue happens on a Windows 7 machine. All works fine on Windows 8.1 and 10. This issue is new in v6-beta.9. All was fine in previous betas and is fine in v5. Problem case: Invoke-RestMethod https://api.github.com/users/nightroman/re...
Open Graph Description: This issue happens on a Windows 7 machine. All works fine on Windows 8.1 and 10. This issue is new in v6-beta.9. All was fine in previous betas and is fine in v5. Problem case: Invoke-RestMethod ht...
X Description: This issue happens on a Windows 7 machine. All works fine on Windows 8.1 and 10. This issue is new in v6-beta.9. All was fine in previous betas and is fine in v5. Problem case: Invoke-RestMethod ht...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5242
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invoke-RestMethod started to fail in v6-beta.9 on a Windows 7 machine","articleBody":"- This issue happens on a Windows 7 machine. All works fine on Windows 8.1 and 10.\r\n- This issue is new in v6-beta.9. All was fine in previous betas and is fine in v5.\r\n\r\n**Problem case:**\r\n\r\n```powershell\r\nInvoke-RestMethod https://api.github.com/users/nightroman/repos\r\n```\r\n\r\n**Expected result:**\r\n\r\nThe command returns the requested data.\r\n\r\n**Actual result:**\r\n\r\nThe command fails:\r\n\r\n```\r\nInvoke-RestMethod : Version string portion was too short or too long.\r\nAt line:1 char:1\r\n+ Invoke-RestMethod https://api.github.com/users/nightroman/repos\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : NotSpecified: (:) [Invoke-RestMethod], ArgumentException\r\n + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand\r\n```\r\n\r\nSome info about the inner exception:\r\n\r\n```\r\nPS> $error.Exception.ToString()\r\nSystem.ArgumentException: Version string portion was too short or too long.\r\n at System.Version.VersionResult.SetFailure(ParseFailureKind failure, String argument)\r\n at System.Version.TryParseVersion(String version, VersionResult& result)\r\n at System.Version.Parse(String input)\r\n at System.Version..ctor(String version)\r\n at Microsoft.PowerShell.Commands.PSUserAgent.get_PlatformName()\r\n at Microsoft.PowerShell.Commands.PSUserAgent.get_UserAgent()\r\n at Microsoft.PowerShell.Commands.WebRequestSession..ctor()\r\n at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.PrepareSession()\r\n at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()\r\n at System.Management.Automation.Cmdlet.DoProcessRecord()\r\n at System.Management.Automation.CommandProcessor.ProcessRecord()\r\n```\r\n\r\n**Environment:**\r\n\r\n```\r\nPS> $PSVersionTable\r\n\r\nName Value\r\n---- -----\r\nPSVersion 6.0.0-beta.9\r\nPSEdition Core\r\nGitCommitId v6.0.0-beta.9\r\nOS Microsoft Windows 6.1.7601 S\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n","author":{"url":"https://github.com/nightroman","@type":"Person","name":"nightroman"},"datePublished":"2017-10-26T09:49:46Z","url":"https://github.com/PowerShell/PowerShell/issues/5242"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:21338c02-d0c0-29d4-a177-dd5dc8d6c010 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B424:E89F1:A03D1F:E5479B:6AFDA077 |
| html-safe-nonce | fe772725b6c7e02efda0093b48655d58727044a987e2526a1d28e33686db54d1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDI0OkU4OUYxOkEwM0QxRjpFNTQ3OUI6NkFGREEwNzciLCJ2aXNpdG9yX2lkIjoiMzY3MDYzNjgyNDI4NTI1Nzg0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ec6ab130c040d0aa7e3203d703a4ea0be72b4247de58b6f6d9b173f42a2ed2ca |
| hovercard-subject-tag | issue:268695860 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/5242/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b5623d3693b29f0857732ed8e5f3244eb3b8881194e5e3d0a5b43fea3075ec2f/PowerShell/PowerShell/issues/5242 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b5623d3693b29f0857732ed8e5f3244eb3b8881194e5e3d0a5b43fea3075ec2f/PowerShell/PowerShell/issues/5242 |
| og:image:alt | This issue happens on a Windows 7 machine. All works fine on Windows 8.1 and 10. This issue is new in v6-beta.9. All was fine in previous betas and is fine in v5. Problem case: Invoke-RestMethod ht... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nightroman |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width