-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Node getaddrinfo ENOTFOUND when using cy.visit() or cy.request() #7340
Comments
Can you access the domain normally, via curl within your environment? What is the result of running |
@jennifer-shehane I am able to curl the environment. I have at the top of the logs showing a netcat response as well as a dig on the url and everything is working. Running a plain https request through node.js gives a successful response as well. |
@jennifer-shehane Checking in on this ticket. I see that it is still labeled as stage: awaiting response. |
Unfortunately we have to close this issue as there is not enough information to reproduce the problem. This does not mean that your issue is not happening - it just means that we do not have a path to move forward. Please comment in this issue with a reproducible example and we will consider reopening the issue. |
I just ran into this, too. I'm pretty sure it's this: nodejs/node#5436 (comment) - a bug in glibc. I'm running cypress within a pod in a kubernetes cluster and pointing it toward a hostname with a subdomain, Assuming it's the glibc bug, there is one curious thing: the container base image is
|
I've found a workaround! Hack the This is what the hack looks like in my case:
where
My container's base image is Ubuntu 20.04. Example command (a few coworkers and) I used to quickly test whether the problem was still present on various Docker images:
Here some of the work-arounds I tried that did not work:
A work-around idea that I did not try:
Whose bug is it, anyway?I'm sure this is not a bug in Cypress. Cypress is using standard Node.js APIs to make HTTPS requests, that's all. It could be a bug in Node.js, or glibc, or maybe even something else. It is just not clear to me. |
Try removing all DNS list from your Network settings. It worked for me. |
Current behavior:
Desired behavior:
Cypress should be able to successfully complete the
cy.visit
orcy.request
command to an https url, if said url is able to be visited manually in a browser, without dns resolve issues.Test code to reproduce
Private repo with private tests. Request access through this ticket.
Reproducible Example
Private repo with private examples. Request access through this ticket.
Versions
Tested on Cypress version 4.3.0 and 4.5.0
MacOs Catalina Version 10.15.3 (19D76)
Linux Debian - 10.3
Electron 80.0.3987.163
The text was updated successfully, but these errors were encountered: