Open khanakia opened 3 months ago
The error message 'connection refused' usually indicates an issue with the service, not the tool. Please ensure the service is running and verify the IP address and port.
I double that there is no issue with the service I just installed a fresh astro site (https://docs.astro.build/en/getting-started/) which runs over this URL http://localhost:4321
only plow is giving a connection refused issue
I can access the site using curl and in a web browser
curl http://localhost:4321
Fond the issue plow is resolving to the IP address instead of localhost
When I want to test http://localhost:4321
it tries to connect via IP 127.0.0.1:4321
but my site is running over localhost
so you cannot access it over http://127.0.0.1:4321/
It should use localhost
instead of using 127.0.0.1
The reason might be that localhost is resolving to the address ::1
, and it looks like Plow has some issues supporting IPv6.
yarn dev
plow http://localhost:4321 -c 1
When i do get the page using the CURL command it works perfectly with the plow command it just throws the errors as below