Skip to content
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

The plugin doesn't work with Cypress version 3.5.0 #81

Closed
luis-m-gonzalez opened this issue Oct 29, 2019 · 3 comments · Fixed by #82
Closed

The plugin doesn't work with Cypress version 3.5.0 #81

luis-m-gonzalez opened this issue Oct 29, 2019 · 3 comments · Fixed by #82
Labels
bug Something isn't working

Comments

@luis-m-gonzalez
Copy link

luis-m-gonzalez commented Oct 29, 2019

Note: It still works well on Cypress 3.4.1

From the Test Runner:

NTLMSSO {ntlmhosts: [localhost]}

CypressError: cy.visit() failed trying to load:

http://localhost/ui/

The response we received from your web server was:

401: Unauthorized

This was considered a failure because the status code was not '2xx'.

If you do not want status codes to cause failures pass the option: 'failOnStatusCode: false'

@bjowes
Copy link
Owner

bjowes commented Oct 29, 2019

Thanks for reporting - I can reproduce it. Under investigation.

@bjowes bjowes added the bug Something isn't working label Oct 29, 2019
@bjowes
Copy link
Owner

bjowes commented Oct 29, 2019

Apparently this issue in Cypress was released with 3.5.0, which changed the behaviour of the proxy settings of Cypress. It is fairly easy to overcome though, I will make a new release shortly.

For those that cannot wait, you can resolve this by editing the file
cypress-ntlm-auth/dist/launchers/cypress-ntlm.jsin your node_modules folder.
Change this line:
process.env.NO_PROXY = '';
to
process.env.NO_PROXY = '<-loopback>';

@bjowes
Copy link
Owner

bjowes commented Oct 29, 2019

By the way, this only affects sites on localhost - all external hosts should work fine out of the box with 3.5.0

bjowes added a commit that referenced this issue Oct 29, 2019
@bjowes bjowes mentioned this issue Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants