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.

socket hang up (requests with cert auth) after upgrade vscode to v1.36.1

See original GitHub issue

socket hang up (requests with cert auth) after upgrade vscode to v1.36.1

  • REST Client Version: 0.21.3
  • VSCode Version: Version: 1.36.1 (user setup) Commit: 2213894ea0415ee8c85c5eea0d0ff81ecc191529 Date: 2019-07-08T22:59:35.033Z Electron: 4.2.5 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS: Windows_NT x64 10.0.17763

No proxy

Steps to Reproduce:

  1. IIS - Create virtual directory test under default website and configure settings 1.a - SSL Settings:
    Require SSL Require Client Certificate

  2. Create index.html file and place it into test virtual directory

   <html><body>OK</body></html>
  1. Create test.http file
   GET https://localhost/Test/index.htm
  1. Edit settings.json (Setup client cert)
"rest-client.certificates": {
      "localhost:443": {
            "pfx": "_res/Cert.pfx",
            "passphrase": "supersecretpassword"
        }        
    },
  1. Send request GET https://localhost/Test/index.htm

You should get error:

Error: socket hang up
	at createHangUpError (_http_client.js:322:15)
	at TLSSocket.socketOnEnd (_http_client.js:425:23)
	at TLSSocket.emit (events.js:187:15)
	at endReadableNT (_stream_readable.js:1092:12)
	at process._tickCallback (internal/process/next_tick.js:63:19)

In vscode version 1.35.0 worded without errors

  • REST Client Version: 0.21.3
  • VSCode Version: Version: 1.35.0 (user setup) Commit: 553cfb2c2205db5f15f3ee8395bbd5cf066d357d Date: 2019-06-04T01:17:12.481Z Electron: 3.1.8 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Windows_NT x64 10.0.17763

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:21 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
artificial-cassianocommented, Jan 5, 2022

this issue remains.

0reactions
Huachaocommented, Apr 6, 2022

It worked sometimes. I read some threads online about logging out of Azure in vscode from command pallete, and then restarting vscode, and trying again. When I did that it was working. However, now it is completely not working and I am getting a “hung socket” error message all the time when I try to deploy. On Tue, Apr 5, 2022 at 9:49 PM Huachao Mao @.> wrote: @anderson9149 https://github.com/anderson9149 did it work for you previously? — Reply to this email directly, view it on GitHub <#389 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4LHHKFFNWDAQ5KLPDG34DVDT3SHANCNFSM4ICQNGDQ . You are receiving this because you were mentioned.Message ID: @.>

@anderson9149 could you please share me with the request that I can test?

Read more comments on GitHub >

github_iconTop Results From Across the Web

why socket hang up error comes while trying to retrieve source ...
Downgrade to the VS Code February 2022 release. Deploy via Azure CLI. Once again, we understand the inconvenience with this issue.
Read more >
Node - Error: socket hang up - MSDN - Microsoft
This is related to an issue in node.js that was fixed in v 5.4.0 - nodejs/node#4482. Please upgrade your version of node.js and...
Read more >
newrelic/NEWS.md - UNPKG
Errors returned from 'axios' requests contain a reference to the request ... 144, * Updated tap to clear up npm audit issues around...
Read more >
Read more - GitHub
Updated configuration system to automatically create an environment variable ... `grpc.record_errors` when deciding to log errors on gRPC client requests.
Read more >
Package List — Spack 0.18.0 documentation
It is automatically generated based on the packages in this Spack version. ... A package universe and a request to install, remove, or...
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