thunder-client-support
thunder-client-support copied to clipboard
Local Caddy with Https not working "Couldn't resolve the hostname to an IP address"
Question:
Hello, I'm running the Caddy server locally to proxy a project with multiple subdomains.
While I'm able to open Caddy configured domain project.localhost in the browser and via curl in the terminal. However, I'm unable to query it via Thunder Client.
I get the following error
I tried changing the underlying http-library as recommended in other issues but no success
What am I missing?
Are you using the free version/paid version/trial:
Hi @BilalBudhani
try these solutions https://github.com/rangav/thunder-client-support/blob/master/docs/common-issues.md
Thanks for response @rangav
I'm actually sending requests to a subdomain like api.project.localhost which is why I can't send it via 0.0.0.0 or any other local IP.
@BilalBudhani I have implemented a fix in v2.17.2, can you please test it and let me know if it's working or not?
How to use
- Update Extension to
v2.17.2 - From Vs Code Settings Enable setting
Preview Features( see screenshot below) - Change
Http LibarytoAxiosin Vs Code setting - Now test the localhost URL and let me know your feedback.
Hey @rangav I appreciate you looking into this issue. I tried following all the above mentioned steps but unfortunately, the problem persists.
Thanks for testing, can share logs data in output window if possible
Here it is
---------------- Running Request: ----------------
Environment Used: development (Active)
Request Url: https://api.project.localhost/v2/path
Method: GET
Request Headers:
{
"Accept": "*/*",
"User-Agent": "vscode",
"x-api-key": "[redacted]"
}
Request Body:
{
"uuid": "[redacted]"
}
I guess there ain't much to work with
I have updated the code again to fix localhost issues in update v2.17.5
Can you test again with axios and got and let me know your feedback.
You can use the DNS Test command to verify the IP used https://github.com/rangav/thunder-client-support/releases/tag/v2.17.5
Please test and let me know your feedback.
Closing this issue let me if you still have any problems