testcafe: Failed to find a DNS-record for the resource
Are you requesting a feature or reporting a bug?
Bug
What is the current behavior?
Tests randomly fails with the following error message:
Failed to find a DNS-record for the resource at "https://develop-i.quid.com/".
I have seen similar errors reported at https://github.com/DevExpress/testcafe/issues/1135 and https://github.com/DevExpress/testcafe/issues/1601
What is the expected behavior?
Tests doesn’t fail with this random error.
Specify your
- operating system: MacOs Sierra 10.12.6
- testcafe version: 0.17.2
- node.js version: v8.1.2
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 3
- Comments: 22 (7 by maintainers)
I’m wondering it this issue should really be closed - it occurs to us with every testcafe version we were using so far. We’re hosting our app using npm package ‘http-server’ on localhost, so there is no way it’s DNS or connectivity issue.
As for others it’s around 5% of cases.
I just hit this - the error message is unhelpful since it suggests a DNS problem, when actually it is a connectivity issue. I changed my host to
127.0.0.1
and it still said there was a DNS problem.