-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request failed on local domain because of DNS resolution #119
Comments
Hi. You should not enable "Switch to Chromium Fetch" if you want to use "Disable SSL Verification" setting. Switch to Chromium was provided to address an old issue, which should be fixed now. Please try with just "Disable SSL Verification" checked. Let me know if it works. |
Greetings @flawiddsouza , I tried with only Thank you. |
I can confirm it's an issue with the DNS and not self-signed certificate. I tried on another local domain with no certificate and it's not working either. I opened the console dev tools and there is a Restfox doesn't seem to use local system DNS settings hence the reason I'm unable to reach local domains. All my other tools can reach these domains properly, any idea why this is happening ? more information : I'm running Restfox from the snap package. Is it snap related ? |
Funny. I was just about to write a reply saying it's not the self signed certificate but most likely an issue with how Restfox does dns resolution. I also don't think Issue is because it's a snap. I need to reproduce this locally. What dns server are you using locally? |
I'm running dnsmasq locally. Thank you very much for the quick reply. edit: Just to make sure, I ran another similar tool to test things and I can confirm it's not related to |
Hi @mrt-prodz I've pushed a fix. Please try this snap and let me know if the issue is fixed. Download: Install: Open Restfox snap |
Greetings @flawiddsouza , I tried your new package v0.10.1 (016ed7f) and I unfortunately still get the same error. We are running BookStack locally on a server at the following domain name : http://bookstack.local And the dev tools still reports :
Thank you |
Heyo, well that's not good news. You can see realtime dns lookup logs from restfox using this command:
Run this command in a terminal and trigger a request - see what logs are printed - they might help. |
Here is the log output :
Note : I tried with Seems like the real problem is the DNS resolution with my own DNS server. |
I wonder why nodejs is not able to get the dns records from dnsmasq. It's very bizarre. I only did the /etc/hosts check, which seems to have worked for you as well. This time I'll set up dnsmasq and see what happens. |
By way, can you also try:
Config for it should be not in /etc/hosts when you run this. I want to see how curl is resolving the dns. It usually shows it at the top when we provide the verbose flag. |
Here is the output :
|
Here is the nslookup output :
However I am not sure it will help you unfortunately. |
Just to update here. I'm kinda blocked by not being able to set up dnsmasq correctly. I've tried on two systems but dnsmasq is unable to resolve the mapped entries. Every other dns request resolves through the dnsmasq resolver address without any issues. Just the "address=" entries I add don't get resolved. Not sure what I'm doing wrong. I'll keep you update if I find a way to reproduce this. |
Greetings,
I tried to look into past issues and found a couple which unfortunately didn't resolve my current problem.
I have a local server with a self signed certificate let's call it :
https://test.local
I use a local DNS server redirecting all my local domains to the proper local servers and everything works fine.
When I attempt to use Restfox on any local domain with a self signed certificate I get the following error :
Error: Request failed
Possible causes for this error:
In Restfox settings I enabled
Disable SSL Verification
and enabledSwitch to Chromium Fetch
but it stil won't work either with GET, PUT, POST etc..If I right click and copy the CURL command, I don't see the
-k
flag to disable SSL check. If I add it manually the command works fine in the terminal.Restfox refuse to make request to any local domain with a self-signed certificate even with the proper settings applied.
Thank you.
note: version v0.10.1 (c228d75)
edit: I changed the title to reflect the real issue.
The text was updated successfully, but these errors were encountered: