Huachao / vscode-restclient

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

not reloving IPv6 localhost address #1080

Open arkuzo opened 1 year ago

arkuzo commented 1 year ago

Steps to Reproduce:

  1. Start web server on IPv6 address (for example, this is default on php yii serve with Yii2 framework)

  2. Provide request to started server:

    GET http://localhost:8081/

Expected: request is provided to [::1] and we get response body

Actual: request is failed with error:

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: connect ECONNREFUSED 127.0.0.1:8081.
kusnier commented 4 months ago

Same problem when the server is running in WSL (Windows Subsystem for Linux).

Test-NetConnection -ComputerName localhost -Port 8500
WARNING: TCP connect to (127.0.0.1 : 8500) failed

ComputerName     : localhost
RemoteAddress    : ::1
RemotePort       : 8500
InterfaceAlias   : Loopback Pseudo-Interface 1
SourceAddress    : ::1
TcpTestSucceeded : True

Chrome and another tools. using resolving the right acces over ipv6. But the rest client has problems:

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: connect ECONNREFUSED 127.0.0.1:8500.