question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.Net Core on VSCode having diff behavior than VS for Mac

See original GitHub issue

From @galvesribeiro on June 8, 2017 18:13

  • VSCode Version: 1.12.2
  • OS Version: Mac OS X 10.12
  • .Net SDK: 1.0.4

When making an HTTP request using Azure SDK in a given application, it throw:

---> System.Net.Http.CurlException: Failure when receiving data from the peer
   at System.Net.Http.CurlHandler.ThrowIfCURLEError(CURLcode error)
   at System.Net.Http.CurlHandler.MultiAgent.FinishRequest(StrongToWeakReference`1 easyWrapper, CURLcode messageResult)
--- End of inner exception stack trace ---

I’ve reach Azure SDK team and we had debuged it (original issue here https://github.com/Azure/azure-sdk-for-net/issues/3312).

The problem only happen if the application is running on VSCode. If I run using VS for Mac, it works flawless.

That initially led us to think that VSCode was using some different dotnet SDK version than the one installed into the system. I removed completely dotnet SDK and VSCode (including any related hidden folder from $HOME) and the behavior still there.

Can someone point me to the right direction?

PS: For MSFT buddies, that is happening in an internal project so if you need more details and code sample, ping me on Skype for Business and we can talk offline.

Thank you, Gutemberg

Copied from original issue: Microsoft/vscode#28250

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
DustinCampbellcommented, Jun 9, 2017

Thanks! I just wanted to figure out who to ping. 😄

cc @gregg-miskelly, @caslan

1reaction
weinandcommented, Jun 9, 2017

.Net Core functionality is not a built-in feature of VS Code but comes through an extension. As a courtesy I will move this issue to the correct repository.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS for Mac will modify dotnet cli project to inapplicable state
In Visual Studio for Mac does not work .netcore projects (my previous report). I try make projects with "dotnet cli". dotnet new web...
Read more >
Jump to the definitions in external dependent packages from ...
I'm new to Visual Studio Code (on Mac). We are using it to develop ASP.NET Core MVC applications in C#. When I hit...
Read more >
Use multiple environments in ASP.NET Core | Microsoft Learn
Learn how to control app behavior across multiple environments in ASP.NET Core apps.
Read more >
Visual Studio vs Visual Studio Code - What's Best In 2022?
NET or C# into different comment stacks will be the ideal candidate for VS Code. It will also benefit those starting their journey...
Read more >
VS Code, Visual Studio for Mac, JetBrains Rider
For example, when you make a new Mobile app in C#, you can get an ASP.NET Core backend along with it. Then you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found