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

Response extremely slow compared to Postman #1249

Closed asdutoit closed 7 months ago

asdutoit commented 7 months ago

I am experiencing an issue where by responses from the API via this VSCode extension is extremely slow, average 5000ms. In comparison with Postman it is average 5ms. See screenshots below:

Screenshot 2024-03-03 at 10 58 46 Screenshot 2024-03-03 at 10 58 21

Is there anything I can do to fix this?

asdutoit commented 7 months ago

I found the issue.
The entry 127.0.0.1 localhost was missing from my /etc/hosts file.

As a minimum, the hosts file should look like this:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1   localhost
255.255.255.255 broadcasthost