vscode-restclient icon indicating copy to clipboard operation
vscode-restclient copied to clipboard

Can't access localhost (always shows "Waiting...")

Open LifeJustDLC opened this issue 11 months ago • 4 comments

          > It works for me. It may be a symptom of your server and not restclient.

Finally it works for me too! Maybe we should restart the vscode or restart the computer

Originally posted by @Xdydy in https://github.com/Huachao/vscode-restclient/issues/1193#issuecomment-1714818146

I can't access localhost (neither using 127.0.0.1) even after a reboot

The service I'm using (NeteaseCloudMusicApi) only support changing port number. I can't bind it to 0.0.0.0

LifeJustDLC avatar Jan 13 '25 09:01 LifeJustDLC

I was having the same issue

qzwzqty avatar Jan 18 '25 16:01 qzwzqty

maybe use proxy

ixqbar avatar Apr 30 '25 02:04 ixqbar

Me too. I don't know why

Humecry avatar May 14 '25 03:05 Humecry

I have the same issue. It's not the server, using curl works.

EDIT

I just solved it on my side. Added in settings:

{
    ...
    "rest-client.excludeHostsForProxy": [
        "localhost",
        "127.0.0.1"
    ],
}

This helped. In my environment, no_proxy is set and curl seems to follow that. It seems like restclient does not, not sure.

HebelHuber avatar May 15 '25 16:05 HebelHuber