Title: Exception at creating System.Net.Http.HttpClient without libcurl3 in ubuntu-16.04 · Issue #1937 · PowerShell/PowerShell · GitHub
Open Graph Title: Exception at creating System.Net.Http.HttpClient without libcurl3 in ubuntu-16.04 · Issue #1937 · PowerShell/PowerShell
X Title: Exception at creating System.Net.Http.HttpClient without libcurl3 in ubuntu-16.04 · Issue #1937 · PowerShell/PowerShell
Description: Steps to reproduce create minimum ubuntu-16.04 env with vagrant do https://github.com/PowerShell/PowerShell/blob/master/docs/installation/linux.md#ubuntu-1604 run powershell execute New-Object System.Net.Http.HttpClient Expected behavior...
Open Graph Description: Steps to reproduce create minimum ubuntu-16.04 env with vagrant do https://github.com/PowerShell/PowerShell/blob/master/docs/installation/linux.md#ubuntu-1604 run powershell execute New-Object Syst...
X Description: Steps to reproduce create minimum ubuntu-16.04 env with vagrant do https://github.com/PowerShell/PowerShell/blob/master/docs/installation/linux.md#ubuntu-1604 run powershell execute New-Object Syst...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/1937
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exception at creating System.Net.Http.HttpClient without libcurl3 in ubuntu-16.04","articleBody":"\u003c!--\n\nIf it is a bug report:\n- make sure you are able to repro it on the latest released version. \nYou can install the latest version from https://github.com/PowerShell/PowerShell/releases\n- Search the existing issues.\n- Refer to the [FAQ](../docs/FAQ.md).\n- Refer to the [known issues](../docs/KNOWNISSUES.md).\n- Fill out the following repro template\n\nIf it's not a bug, please remove the template and elaborate the issue in your own words.\n--\u003e\n## Steps to reproduce\n1. create minimum ubuntu-16.04 env with vagrant\n2. do https://github.com/PowerShell/PowerShell/blob/master/docs/installation/linux.md#ubuntu-1604\n3. run powershell\n4. execute `New-Object System.Net.Http.HttpClient`\n## Expected behavior\n\noutput the following text\n\n```\nDefaultRequestHeaders BaseAddress Timeout MaxResponseContentBufferSize\n--------------------- ----------- ------- ----------------------------\n{} 00:01:40 2147483647\n```\n## Actual behavior\n\noccured following exception\n\n```\nNew-Object : Exception calling \".ctor\" with \"0\" argument(s): \"The type\ninitializer for 'System.Net.Http.CurlHandler' threw an exception.\"\nAt line:1 char:1\n+ New-Object System.Net.Http.HttpClient\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n + CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvoca\n tionException\n + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.Power\n Shell.Commands.NewObjectCommand\n\n```\n\nand do not work the PowerShellGet module commands(Find-Module,Install-Module,etc)\n## Environment data\n\n\u003c!-- provide the output of $PSVersionTable --\u003e\n\n``` powershell\n\u003e $PSVersionTable\n\nName Value\n---- -----\nPSVersion 6.0.0-alpha\nPSEdition Core\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\nBuildVersion 3.0.0.0\nGitCommitId v6.0.0-alpha.9\nCLRVersion\nWSManStackVersion 3.0\nPSRemotingProtocolVersion 2.3\nSerializationVersion 1.1.0.1\n\n```\n\nFinally,I resolved it by installing `libcurl3` package by apt-get.\nI guess it is caused by dependency of System.Net.Http.CurlHandler.\n","author":{"url":"https://github.com/itn3000","@type":"Person","name":"itn3000"},"datePublished":"2016-08-19T05:25:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1937/PowerShell/issues/1937"}
| 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:4f3824c6-a0c3-678c-8362-c9d6f5b678ad |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2A2:24FAA0:F314A2:15C336C:6A589B0C |
| html-safe-nonce | 08f6dd8d3a84de63f90853ff7e51414197519fa73fdc83eb562ebae639de4869 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkEyOjI0RkFBMDpGMzE0QTI6MTVDMzM2Qzo2QTU4OUIwQyIsInZpc2l0b3JfaWQiOiI2MzE1MjExMTczODQwNTkxNjI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4f381930f2d62387fee54c4c4effd583b357e7412d12da51a52c579203f852b1 |
| hovercard-subject-tag | issue:172056979 |
| 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/1937/issue_layout |
| twitter:image | https://opengraph.githubassets.com/87e1fe66e2a4a8cf5018cc7e51d78584ad2986cb598ded601fdfb04718705453/PowerShell/PowerShell/issues/1937 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/87e1fe66e2a4a8cf5018cc7e51d78584ad2986cb598ded601fdfb04718705453/PowerShell/PowerShell/issues/1937 |
| og:image:alt | Steps to reproduce create minimum ubuntu-16.04 env with vagrant do https://github.com/PowerShell/PowerShell/blob/master/docs/installation/linux.md#ubuntu-1604 run powershell execute New-Object Syst... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | itn3000 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width