Huachao / vscode-restclient

REST Client Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=humao.rest-client
MIT License
5.24k stars 436 forks source link

Connection Reject by Host #1279

Open jtsom opened 3 months ago

jtsom commented 3 months ago

(Adding this report, as the previous one is over a year old with no updates)

Trying to send any request results in Connection Rejected.

image

Errors messages:

[Error - 3:25:46 PM] Failed to send request:
RequestError: The connection was rejected. Either the requested service isn’t running on the requested server/port, the proxy settings in vscode are misconfigured, or a firewall is blocking requests. Details: RequestError.
    at ClientRequest.<anonymous> (c:\Users\jtsombakos\.vscode-insiders\extensions\humao.rest-client-0.25.1\dist\extension.js:252:3306)
    at Object.onceWrapper (node:events:629:26)
    at ClientRequest.emit (node:events:526:35)
    at e.emit (c:\Users\jtsombakos\.vscode-insiders\extensions\humao.rest-client-0.25.1\dist\extension.js:558:29932)
    at TLSSocket.socketErrorListener (node:_http_client:495:9)
    at TLSSocket.emit (node:events:514:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Steps to Reproduce:

  1. Try to send request

Oddly, running the exact same code, but with the release version of VS Code (1.90.2), can send the request successfully without error.

jtsom commented 1 month ago

This is still happening with the latest VSCode Insiders.

It is now also NOT working using the release version of VSCode (1.92.2)

Alumniminium commented 1 week ago

Confirming the same issue on 1.93.0, 1.93.1 and 1.94-insiders, REST Client Version: 0.25.1, Linux

This is just great timing, i just finished uninstalling postman and rewriting everything to use .http files instead and now everything is broken suddenly.