FetchError - ENOTFOUND
Closed this issue · 17 comments
the connection to the haxball endpoint failed. it is connectivity error, that may be caused by your local/remote machine losing (internet) connection or haxball provider api being temporarily unavailable.
Hi,
I have been consistently receiving the "ENOTFOUND" error for a while now. It persists for a day or two and then disappears, but afterwards, it suddenly causes my computer to crash. Initially, it wasn't a problem since it didn't affect my work when my room wasn't occupied, but later on, it caused tremendous damage. Can you show me a solution or suggest any troubleshooting steps I should try regarding this issue? You can see the error I'm getting in the attachment.
@basro How often and when does the script make requests to rs/api/host
? Is there any possibilities to Cloudflare block certain requests? Or something like that on Haxball's backend? If the answer is no then i guess problem is on the @furkanardagul's network.
The endpoint in question will be called at the start of the connection. It will be called about once a minute until it succeeds and then wont be called again.
That error looks to me like a DNS lookup that failed. Not sure why it would happen to @furkanardagul but it's most likely not cloudflare actively blocking him.
@furkanardagul Run this script while hosting a Haxball Headless Room and see if its throwing any errors. Maybe this can help us to understand whats going on.
const dns2 = require('dns2');
const dns = new dns2({});
setInterval(async () => {
await dns.resolveA('www.haxball.com').catch((error) => {
throw new Error(error);
});
}, 1000);
@basro Haxball seems redirecting www.haxball.com -> haxball.com
. Maybe (?) using non www API calls on script would help with less DNS queries?
Haxball does not redirect from www to haxball.com, if anything it's the other way around. But in any case that's done in the http response which come after the domain name is resolved so it would be unrelated to this problem.
I receive my network connection from Turkey/EtkinHost company, and I believe there is no issue with the server. After having conversations with them, they stated that there are no restrictions on their end. Once I try the relevant script, I will provide an update.
@furkanardagul You must run the relevant DNS script apart from actual Haxball Room script, in a different terminal. Also what DNS servers does ur VDS use? If its using ISP-provided DNS servers, I recommend manually changing it to any public DNS server. (1.1.1.1, 8.8.8.8 etc)
New error. I couldn't catch an error in the script I ran. The game bot crashed again with an error.
The error in screenshot is not related with this issue. There is a DDoS attack ongoing on Haxball's servers at the moment. See #20.
New error. I couldn't catch an error in the script I ran. The game bot crashed again with an error.
The error in screenshot is not related with this issue. There is a DDoS attack ongoing on Haxball's servers at the moment. See #20.
this new error.
Please remove dns2 from your actual headless script. I told you to run it from different script/terminal.
I'm already running it in a separate command script I removed the headless from my code.