Title: Invoke-RestMethod fails on very large files · Issue #4129 · PowerShell/PowerShell · GitHub
Open Graph Title: Invoke-RestMethod fails on very large files · Issue #4129 · PowerShell/PowerShell
X Title: Invoke-RestMethod fails on very large files · Issue #4129 · PowerShell/PowerShell
Description: It seems Invoke-RestMethod fails to download very large files, probably due to not enough memory. Steps to reproduce Invoke-RestMethod -Uri http://speedtest.tele2.net/10GB.zip -OutFile /Users/ffeldhaus/Downloads/10GB.zip Expected behavio...
Open Graph Description: It seems Invoke-RestMethod fails to download very large files, probably due to not enough memory. Steps to reproduce Invoke-RestMethod -Uri http://speedtest.tele2.net/10GB.zip -OutFile /Users/ffeld...
X Description: It seems Invoke-RestMethod fails to download very large files, probably due to not enough memory. Steps to reproduce Invoke-RestMethod -Uri http://speedtest.tele2.net/10GB.zip -OutFile /Users/ffeld...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4129
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invoke-RestMethod fails on very large files","articleBody":"It seems `Invoke-RestMethod` fails to download very large files, probably due to not enough memory.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\nInvoke-RestMethod -Uri http://speedtest.tele2.net/10GB.zip -OutFile /Users/ffeldhaus/Downloads/10GB.zip\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\nVery large files should be downloaded without issues.\r\n\r\nActual behavior\r\n---------------\r\n\r\n```powershell\r\nPS /Users/ffeldhaus/development> Invoke-RestMethod -Uri http://speedtest.tele2.net/10GB.zip -OutFile /Users/ffeldhaus/Downloads/10GB.zip\r\nInvoke-RestMethod : Stream was too long.\r\nAt line:1 char:1\r\n+ Invoke-RestMethod -Uri http://speedtest.tele2.net/10GB.zip -OutFile / ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n+ CategoryInfo : NotSpecified: (:) [Invoke-RestMethod], IOException\r\n+ FullyQualifiedErrorId :\r\nSystem.IO.IOException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand \r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\nMac OS X 10.12.5\r\n\r\n```powershell\r\nPS /Users/ffeldhaus/development> $PSVersionTable \r\n\r\nName Value \r\n---- ----- \r\nPSVersion 6.0.0-beta \r\nPSEdition Core \r\nBuildVersion 3.0.0.0 \r\nCLRVersion \r\nGitCommitId v6.0.0-beta.2 \r\nOS Darwin 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 \r\nPlatform Unix \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/ffeldhaus","@type":"Person","name":"ffeldhaus"},"datePublished":"2017-06-28T12:25:35Z","url":"https://github.com/PowerShell/PowerShell/issues/4129"}
| 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:60d6e7f0-fe65-e2f8-f669-e7b794b8b946 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B10E:C35DD:264D832:354AEBA:6AFD44C6 |
| html-safe-nonce | f086423e38357323356fc72470d98f1df8263e340eb19751d8736c0ac4cd6494 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTBFOkMzNUREOjI2NEQ4MzI6MzU0QUVCQTo2QUZENDRDNiIsInZpc2l0b3JfaWQiOiI5NjYzMDk4NTg5MDQ5ODI3MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a005c223543c54704b59f2ea54efa1398a93aae6e0752ae32db65e54eb53442c |
| hovercard-subject-tag | issue:239147111 |
| 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/4129/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c17400e811596b82896b1b5ef5a567cb2bd111b4c41b6c9652d130b24f084858/PowerShell/PowerShell/issues/4129 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c17400e811596b82896b1b5ef5a567cb2bd111b4c41b6c9652d130b24f084858/PowerShell/PowerShell/issues/4129 |
| og:image:alt | It seems Invoke-RestMethod fails to download very large files, probably due to not enough memory. Steps to reproduce Invoke-RestMethod -Uri http://speedtest.tele2.net/10GB.zip -OutFile /Users/ffeld... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ffeldhaus |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| 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 | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width