Zombie Headless Browser challenges #54036
Labels
scope: curriculum
Lessons, Challenges, Projects and other Curricular Content in curriculum directory.
status: discussing
Under discussion threads. Closed as stale after 60 days of inactivity.
type: bug
Issues that need priority attention. Platform, Curriculum tests (if broken completely), etc.
Describe the Issue
Setting
Browser.site = "http://localhost:3000";
causes the errorTypeError: bind EINVAL 0.0.0.0
Using
Browser.site = "http://0.0.0.0:3000";
Or forcing the DNS result order (setDefaultResultOrder)
fixes it.
The best I can tell, in newer versions of Node the DNS result order has changed (might have been in v17). We had to fix a different challenge at one point to allow IPv6 IPs. I think this issue is related.
Not sure what the best solution is but we might have to update the boilerplate or the challenge text. We can force the result order in the boilerplate if needed.
Edit: My best guess why we haven't seen this issue more is because we (at least at one point) forced the engine in package.json and possibly Replit running older versions of Node for a long time. I believe most people will see it locally with new versions of Node and I see it on Gitpod running Node 20.
Affected Page
https://www.freecodecamp.org/learn/quality-assurance/quality-assurance-and-testing-with-chai/simulate-actions-using-a-headless-browser
Your code
Expected behavior
Not to get an error with the code the challenge tells you to use.
Screenshots
No response
System
Additional context
Forum: https://forum.freecodecamp.org/t/qa-testing-w-chai-were-the-last-2-tests-ever-fixed/678150
The text was updated successfully, but these errors were encountered: