thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.64k stars 130 forks source link

404 Errors (even though the same request works from postman) #829

Open lukewis opened 2 years ago

lukewis commented 2 years ago

Describe the bug I'm getting a 404 error when sending a request to localhost. However, the same request works find from postman

Platform:

Question

Solution:

rangav commented 2 years ago

Hi @lukewis thanks for reporting the issue.

To see logs, open output window and select Thunder Client in dropdown

rangav commented 2 years ago

sometimes could be http library issue, you can change to axios, let me know if that works

Screenshot 2022-10-09 at 11 14 33
lukewis commented 2 years ago

Thanks for the reply @rangav! The error logs don't show anything unusual. I tried axios with the same result (404). The really weird thing is that my buddy and I share the same git repo, and this request works normally on his machine. It's broken on mine for some reason. Other info. A request to https://google.com works normally. It seems to only be localhost that's impacted.

rangav commented 2 years ago

can you share a srcreenshot if possible, to see if I can find anything unusual.

or try re-starting your machine.

lukewis commented 2 years ago

Tried a reboot, but seeing same behavior. Interesting thing is that GET https://google.com works correctly (and shows in the log), but GET http://localhost:8008 fails with a 404 (and does NOT appear in the log)

image
rangav commented 2 years ago

try these suggestions in below comments https://github.com/rangav/thunder-client-support/issues/251#issuecomment-874439967 https://github.com/rangav/thunder-client-support/issues/170#issuecomment-1096268558 https://github.com/rangav/thunder-client-support/issues/170#issuecomment-864047143

or try the below urls