bjowes / cypress-ntlm-auth

Windows authentication plugin for Cypress
MIT License
54 stars 9 forks source link

Protocol "https:" not supported. Expected "http:" #225

Open Matebo opened 1 year ago

Matebo commented 1 year ago

I sometimes get this error causing test execution to stop. It does not always occur, and sometimes occurs on different tests.

Versions:
"cypress": "^11.2.0", "cypress-ntlm-auth": "^4.1.1",

Any suggestions?

  Running:  15-Classifications.cy.js                                                      (15 of 34)

  15-Classification.spec
node:_http_client:164
    throw new ERR_INVALID_PROTOCOL(protocol, expectedProtocol);
    ^

TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
    at new NodeError (node:internal/errors:372:5)
    at new ClientRequest (node:_http_client:164:11)
    at Object.request (node:https:353:10)
    at makeProxyToServerRequest (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:837:38)
    at /usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:830:16
    at wrapper (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:271:20)
    at eachOfArrayLike (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:490:13)
    at eachOf (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:626:16)
    at awaitable (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:211:32)
    at Object.eachLimit (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:2691:16)
    at Object.awaitable (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:211:32)
    at Proxy._onRequestHeaders (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:972:9)
    at /usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:826:19
    at wrapper (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:271:20)
    at iteratorCallback (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:501:17)
    at /usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:327:20 {
  code: 'ERR_INVALID_PROTOCOL'
}
bjowes commented 1 year ago

I have not seen this before. Can you please share your test code? Are you using the latest version? Any corporate proxy in use?

mån 26 dec. 2022 kl. 12:22 skrev Matebo @.***>:

I sometimes get this error causing test execution to stop. Any suggestions?

Running: 15-Classifications.cy.js (15 of 34)

15-Classification.spec node:_http_client:164 throw new ERR_INVALID_PROTOCOL(protocol, expectedProtocol); ^

TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:" at new NodeError (node:internal/errors:372:5) at new ClientRequest (node:_http_client:164:11) at Object.request (node:https:353:10) at makeProxyToServerRequest @./http-mitm-proxy/lib/proxy.js:837:38) at @./http-mitm-proxy/lib/proxy.js:830:16 at wrapper (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:271:20) at eachOfArrayLike (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:490:13) at eachOf (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:626:16) at awaitable (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:211:32) at Object.eachLimit (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:2691:16) at Object.awaitable (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:211:32) at Proxy._onRequestHeaders @./http-mitm-proxy/lib/proxy.js:972:9) at @./http-mitm-proxy/lib/proxy.js:826:19 at wrapper (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:271:20) at iteratorCallback (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:501:17) at /usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:327:20 { code: 'ERR_INVALID_PROTOCOL' }

— Reply to this email directly, view it on GitHub https://github.com/bjowes/cypress-ntlm-auth/issues/225, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCHR3GSPSBZFFN2BUFM5Y3WPF5W7ANCNFSM6AAAAAATJSTWXA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- /Björn W

Skickat från min iPhone

Matebo commented 1 year ago

I updated cypress to the latest version (12.2.0) and the issue did not reoccur yet since then. No corporate proxy in use.

Matebo commented 1 year ago

Still an issue for me

Running:  06-Export-refresh-resume-transfer.cy.js                                        (6 of 34)

  06-Export-refresh-resume-transfer
node:_http_client:164
    throw new ERR_INVALID_PROTOCOL(protocol, expectedProtocol);
    ^

TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
    at new NodeError (node:internal/errors:372:5)
    at new ClientRequest (node:_http_client:164:11)
    at Object.request (node:https:353:10)
    at makeProxyToServerRequest (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:837:38)
    at /usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:830:16
    at wrapper (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:271:20)
    at eachOfArrayLike (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:490:13)
    at eachOf (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:626:16)
    at awaitable (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:211:32)
    at Object.eachLimit (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:2691:16)
    at Object.awaitable (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:211:32)
    at Proxy._onRequestHeaders (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:972:9)
    at /usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:826:19
    at wrapper (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:271:20)
    at iteratorCallback (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:501:17)
    at /usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:327:20 {
  code: 'ERR_INVALID_PROTOCOL'
}
[Pipeline] }
[Pipeline] // script
[Pipeline] }
bjowes commented 1 year ago

Is this a sporadic error or does it occur on every execution at the same point?

Matebo commented 1 year ago

This is a sporadic error

bjowes commented 1 year ago

Maybe this is already clear to you, but the root cause if the issue is that an https request is attempted through a (presumed) http connection. The proxy in the plugin keeps track of outgoing requests and sets the appropriate protocol. One possibility that has caused some issues in the past is the config API. The proxy exposes a proxy endpoint and a config API endpoint, and the config API is called by Cypress when you are changing the NTLM configuration. The traffic to the config API is always http. If for some reason https traffic is sent to the config API endpoint, it would likely result in the observed error.

Is your test case using lots of ports, maybe randomly set? Could it occur that they collide with the proxy ports? The proxy ports are picked from free ports on the machine on each launch so they will vary over time. To see what ports are used in a specific test run, you can observe them in the Cypress UI. Go to settings, scroll down to the "env" section of the resolved configuration. The two endpoints are specified by NTLM_AUTH_API and NTLM_AUTH_PROXY. When running Cypress without UI (cypress run), you would need to enable Debug logging of the plugin to observe the ports used.

On Mon, Jan 16, 2023 at 9:59 AM Matebo @.***> wrote:

This is a sporadic error

— Reply to this email directly, view it on GitHub https://github.com/bjowes/cypress-ntlm-auth/issues/225#issuecomment-1383691781, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCHR3H7SMMUDYZIF3I2B3DWSUEYVANCNFSM6AAAAAATJSTWXA . You are receiving this because you modified the open/close state.Message ID: @.***>

Matebo commented 1 year ago

It just occurred again with debug logging on. So should I suspect that port 54570 is already in use on the Jenkins node that is executing the tests?


  Running:  26-4eyes-timeout-t2-IMPORT.cy.js                                              (32 of 34)

  26-4eyes-timeout-IMPORT
2023-03-03T10:44:58.234Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
2023-03-03T10:44:58.234Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:54576 to target http://10.10.90.167/
2023-03-03T10:44:58.234Z cypress:plugin:ntlm-auth Request to http://10.10.90.167/ - pass on
2023-03-03T10:44:58.244Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
2023-03-03T10:44:59.756Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
2023-03-03T10:44:59.756Z cypress:plugin:ntlm-auth Request to http://10.10.90.167/ - pass on
2023-03-03T10:44:59.765Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
2023-03-03T10:44:59.777Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.97.150:80
2023-03-03T10:44:59.777Z cypress:plugin:ntlm-auth Request to http://10.10.97.150/ - pass on
2023-03-03T10:44:59.924Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.97.150:80
2023-03-03T10:45:00.162Z cypress:plugin:ntlm-auth Tunnel to evmgmt.etesting.lan:8443
2023-03-03T10:45:00.239Z cypress:plugin:ntlm-auth server closed tunnel socket to  evmgmt.etesting.lan:8443
    ✓ mgmt, set FILE-VOLUME-*-IMPORT IMPORT to 10000
2023-03-03T10:45:00.275Z cypress:plugin:ntlm-auth server closed tunnel socket to  evmgmt.etesting.lan:8443
2023-03-03T10:45:00.275Z cypress:plugin:ntlm-auth client closed tunnel socket to  evmgmt.etesting.lan:8443
2023-03-03T10:45:00.275Z cypress:plugin:ntlm-auth client closed tunnel socket to  evmgmt.etesting.lan:8443
2023-03-03T10:45:00.296Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
2023-03-03T10:45:00.296Z cypress:plugin:ntlm-auth Request to http://10.10.90.167/ - pass on
2023-03-03T10:45:00.305Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
2023-03-03T10:45:00.814Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
2023-03-03T10:45:00.814Z cypress:plugin:ntlm-auth Request to http://10.10.90.167/ - pass on
2023-03-03T10:45:00.823Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
2023-03-03T10:45:02.833Z cypress:plugin:ntlm-auth getTargetHost - host header  127.0.0.1:42039
2023-03-03T10:45:02.834Z cypress:plugin:ntlm-auth Request to config API
2023-03-03T10:45:02.834Z cypress:plugin:ntlm-auth Created untracked agent for target http://127.0.0.1:42039/
2023-03-03T10:45:02.835Z cypress:plugin:ntlm-auth Received valid NTLM config update
2023-03-03T10:45:02.835Z cypress:plugin:ntlm-auth Added new hosts [ 'product-etesting.company.com' ]
2023-03-03T10:45:02.836Z cypress:plugin:ntlm-auth getTargetHost - host header  127.0.0.1:42039
2023-03-03T10:45:02.850Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
2023-03-03T10:45:02.850Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:50548 to target https://product-etesting.company.com/
2023-03-03T10:45:02.850Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
2023-03-03T10:45:02.925Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
2023-03-03T10:45:02.925Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
2023-03-03T10:45:02.925Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
2023-03-03T10:45:02.932Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
2023-03-03T10:45:02.932Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
2023-03-03T10:45:02.958Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
2023-03-03T10:45:02.960Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:50548 due to socket.close
2023-03-03T10:45:04.300Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
2023-03-03T10:45:04.300Z cypress:plugin:ntlm-auth Request to http://10.10.90.167/ - pass on
2023-03-03T10:45:04.309Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
2023-03-03T10:45:04.819Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
2023-03-03T10:45:04.819Z cypress:plugin:ntlm-auth Request to http://10.10.90.167/ - pass on
2023-03-03T10:45:04.828Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
2023-03-03T10:45:06.839Z cypress:plugin:ntlm-auth getTargetHost - host header  127.0.0.1:42039
2023-03-03T10:45:06.839Z cypress:plugin:ntlm-auth Request to config API
2023-03-03T10:45:06.839Z cypress:plugin:ntlm-auth Created untracked agent for target http://127.0.0.1:42039/
2023-03-03T10:45:06.840Z cypress:plugin:ntlm-auth Received valid NTLM config update
2023-03-03T10:45:06.840Z cypress:plugin:ntlm-auth Added new hosts [ 'product-etesting.company.com' ]
2023-03-03T10:45:06.841Z cypress:plugin:ntlm-auth getTargetHost - host header  127.0.0.1:42039
2023-03-03T10:45:06.854Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
2023-03-03T10:45:06.854Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:54570 to target https://product-etesting.company.com/
2023-03-03T10:45:06.854Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
2023-03-03T10:45:06.920Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
2023-03-03T10:45:06.920Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
2023-03-03T10:45:06.920Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
2023-03-03T10:45:06.937Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
2023-03-03T10:45:06.938Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
2023-03-03T10:45:06.962Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
2023-03-03T10:45:06.963Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:54570 due to socket.close
2023-03-03T10:45:06.999Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
2023-03-03T10:45:06.999Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
node:_http_client:164
    throw new ERR_INVALID_PROTOCOL(protocol, expectedProtocol);
    ^

TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
    at new NodeError (node:internal/errors:372:5)
    at new ClientRequest (node:_http_client:164:11)
    at Object.request (node:https:353:10)
    at makeProxyToServerRequest (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:837:38)
    at /usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:830:16
    at wrapper (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:271:20)
    at eachOfArrayLike (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:490:13)
    at eachOf (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:626:16)
    at awaitable (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:211:32)
    at Object.eachLimit (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:2691:16)
    at Object.awaitable (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:211:32)
    at Proxy._onRequestHeaders (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:972:9)
    at /usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:826:19
    at wrapper (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:271:20)
    at iteratorCallback (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:501:17)
    at /usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:327:20 {
  code: 'ERR_INVALID_PROTOCOL'
}
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // timeout
[Pipeline] echo
bjowes commented 1 year ago

Thanks for following through on this and providing the debug log! I really needed it to find this edge case. Apparently the browser may sometimes reuse the same outgoing sockets when connecting to a new target on a different protocol. There was some traffic in the log to an http host, and some to the authenticated https host. When the same socket was used for these two connections, the ntlm-proxy tried to pass on the traffic, but the agent type was not compatible with the target.

I am working on a patch for this.

bjowes commented 1 year ago

Published version 4.1.2 which should fix this. Please try it out and report back.

As a side note, I noticed multiple calls to cy.ntlm from the logs, which seemed to add the same host. Generally you should only need to call this once per test. If you really need to change the actual user account for a specific target during a test, you would also need to call cy.ntlmReset to remove existing connections.

Matebo commented 1 year ago

Thanks for the quick fix. It seems to work well until now.

I'm using cy.request to configure some things on other machines before and while running the tests, without the intention of using windows authentication.

bjowes commented 1 year ago

Glad to hear it!

ons 8 mars 2023 kl. 10:41 skrev Matebo @.***>:

Thanks for the quick fix. It seems to work well until now.

I'm using cy.request to configure some things on other machines before and while running the tests, without the intention of using windows authentication.

— Reply to this email directly, view it on GitHub https://github.com/bjowes/cypress-ntlm-auth/issues/225#issuecomment-1459877383, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCHR3A37D6IOBKPJIJRCV3W3BH3BANCNFSM6AAAAAATJSTWXA . You are receiving this because you modified the open/close state.Message ID: @.***>

-- /Björn W

Skickat från min iPhone

Matebo commented 1 year ago

The issue occurred again with cypress-ntlm-auth version 4.1.2. I had turned off debug logging, so I don't have them right now. I turned debug logging back on so that I can provide them to you next time.

bjowes commented 1 year ago

That's too bad. Reopening the issue ans waiting for logs.

Matebo commented 1 year ago

It occurred again yesterday. cypress-ntlm-auth 4.1.2 was used

Logs

07:39:23    24-4eyes-happy-flow-IMPORT
07:39:23  2023-04-24T05:39:22.958Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
07:39:23  2023-04-24T05:39:22.958Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40570 to target http://10.10.90.167/
07:39:23  2023-04-24T05:39:22.958Z cypress:plugin:ntlm-auth Request to http://10.10.90.167/ - pass on
07:39:23  2023-04-24T05:39:22.968Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
07:39:24  2023-04-24T05:39:24.481Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
07:39:24  2023-04-24T05:39:24.481Z cypress:plugin:ntlm-auth Request to http://10.10.90.167/ - pass on
07:39:24  2023-04-24T05:39:24.490Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
07:39:24  2023-04-24T05:39:24.500Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.97.150:80
07:39:24  2023-04-24T05:39:24.500Z cypress:plugin:ntlm-auth Request to http://10.10.97.150/ - pass on
07:39:24  2023-04-24T05:39:24.633Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.97.150:80
07:39:24  2023-04-24T05:39:24.880Z cypress:plugin:ntlm-auth Tunnel to evmgmt.etesting.lan:8443
07:39:25  2023-04-24T05:39:24.914Z cypress:plugin:ntlm-auth server closed tunnel socket to  evmgmt.etesting.lan:8443
07:39:25  2023-04-24T05:39:24.921Z cypress:plugin:ntlm-auth server closed tunnel socket to  evmgmt.etesting.lan:8443
07:39:25  2023-04-24T05:39:24.921Z cypress:plugin:ntlm-auth client closed tunnel socket to  evmgmt.etesting.lan:8443
07:39:25  2023-04-24T05:39:24.921Z cypress:plugin:ntlm-auth client closed tunnel socket to  evmgmt.etesting.lan:8443
07:39:25      ✓ mgmt, set FILE-VOLUME-*-IMPORT IMPORT to 10000
07:39:25  2023-04-24T05:39:24.966Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
07:39:25  2023-04-24T05:39:24.967Z cypress:plugin:ntlm-auth Request to http://10.10.90.167/ - pass on
07:39:25  2023-04-24T05:39:24.975Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
07:39:25  2023-04-24T05:39:25.483Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
07:39:25  2023-04-24T05:39:25.483Z cypress:plugin:ntlm-auth Request to http://10.10.90.167/ - pass on
07:39:25  2023-04-24T05:39:25.492Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
07:39:27  2023-04-24T05:39:27.503Z cypress:plugin:ntlm-auth getTargetHost - host header  127.0.0.1:37867
07:39:27  2023-04-24T05:39:27.503Z cypress:plugin:ntlm-auth Request to config API
07:39:27  2023-04-24T05:39:27.503Z cypress:plugin:ntlm-auth Created untracked agent for target http://127.0.0.1:37867/
07:39:27  2023-04-24T05:39:27.504Z cypress:plugin:ntlm-auth Received valid NTLM config update
07:39:27  2023-04-24T05:39:27.504Z cypress:plugin:ntlm-auth Added new hosts [ 'product-etesting.company.com' ]
07:39:27  2023-04-24T05:39:27.505Z cypress:plugin:ntlm-auth getTargetHost - host header  127.0.0.1:37867
07:39:27  2023-04-24T05:39:27.518Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:27  2023-04-24T05:39:27.518Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40310 to target https://product-etesting.company.com/
07:39:27  2023-04-24T05:39:27.518Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:27  2023-04-24T05:39:27.550Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:27  2023-04-24T05:39:27.550Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:27  2023-04-24T05:39:27.550Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:27  2023-04-24T05:39:27.557Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:27  2023-04-24T05:39:27.558Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:27  2023-04-24T05:39:27.577Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:27  2023-04-24T05:39:27.578Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40310 due to socket.close
07:39:29  2023-04-24T05:39:28.897Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
07:39:29  2023-04-24T05:39:28.897Z cypress:plugin:ntlm-auth Request to http://10.10.90.167/ - pass on
07:39:29  2023-04-24T05:39:28.906Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
07:39:29  2023-04-24T05:39:29.414Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
07:39:29  2023-04-24T05:39:29.414Z cypress:plugin:ntlm-auth Request to http://10.10.90.167/ - pass on
07:39:29  2023-04-24T05:39:29.423Z cypress:plugin:ntlm-auth getTargetHost - host header  10.10.90.167:80
07:39:31  2023-04-24T05:39:31.435Z cypress:plugin:ntlm-auth getTargetHost - host header  127.0.0.1:37867
07:39:31  2023-04-24T05:39:31.435Z cypress:plugin:ntlm-auth Request to config API
07:39:31  2023-04-24T05:39:31.435Z cypress:plugin:ntlm-auth Created untracked agent for target http://127.0.0.1:37867/
07:39:31  2023-04-24T05:39:31.436Z cypress:plugin:ntlm-auth Received valid NTLM config update
07:39:31  2023-04-24T05:39:31.436Z cypress:plugin:ntlm-auth Added new hosts [ 'product-etesting.company.com' ]
07:39:31  2023-04-24T05:39:31.436Z cypress:plugin:ntlm-auth getTargetHost - host header  127.0.0.1:37867
07:39:31  2023-04-24T05:39:31.447Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:31  2023-04-24T05:39:31.447Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40318 to target https://product-etesting.company.com/
07:39:31  2023-04-24T05:39:31.447Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:31  2023-04-24T05:39:31.479Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:31  2023-04-24T05:39:31.479Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:31  2023-04-24T05:39:31.479Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:31  2023-04-24T05:39:31.486Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:31  2023-04-24T05:39:31.486Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:31  2023-04-24T05:39:31.502Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:31  2023-04-24T05:39:31.503Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40318 due to socket.close
07:39:31  2023-04-24T05:39:31.532Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:31  2023-04-24T05:39:31.532Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40332 to target https://product-etesting.company.com/
07:39:31  2023-04-24T05:39:31.532Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:31  2023-04-24T05:39:31.533Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:31  2023-04-24T05:39:31.533Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40336 to target https://product-etesting.company.com/
07:39:31  2023-04-24T05:39:31.533Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:31  2023-04-24T05:39:31.565Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:31  2023-04-24T05:39:31.565Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:31  2023-04-24T05:39:31.565Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:31  2023-04-24T05:39:31.568Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:31  2023-04-24T05:39:31.569Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:31  2023-04-24T05:39:31.569Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:31  2023-04-24T05:39:31.572Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:31  2023-04-24T05:39:31.572Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:31  2023-04-24T05:39:31.575Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:31  2023-04-24T05:39:31.575Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:31  2023-04-24T05:39:31.587Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:31  2023-04-24T05:39:31.589Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40332 due to socket.close
07:39:31  2023-04-24T05:39:31.591Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:31  2023-04-24T05:39:31.606Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:31  2023-04-24T05:39:31.606Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40346 to target https://product-etesting.company.com/
07:39:31  2023-04-24T05:39:31.606Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:31  2023-04-24T05:39:31.639Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:31  2023-04-24T05:39:31.639Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:31  2023-04-24T05:39:31.639Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:31  2023-04-24T05:39:31.645Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:31  2023-04-24T05:39:31.646Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:31  2023-04-24T05:39:31.696Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:31  2023-04-24T05:39:31.697Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40346 due to socket.close
07:39:31  2023-04-24T05:39:31.794Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40336 due to socket.close
07:39:32  2023-04-24T05:39:32.267Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.267Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40358 to target https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.267Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:32  2023-04-24T05:39:32.300Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.301Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:32  2023-04-24T05:39:32.301Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:32  2023-04-24T05:39:32.308Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:32  2023-04-24T05:39:32.308Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:32  2023-04-24T05:39:32.323Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.324Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40358 due to socket.close
07:39:32  2023-04-24T05:39:32.382Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.382Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40360 to target https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.382Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:32  2023-04-24T05:39:32.417Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.417Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:32  2023-04-24T05:39:32.417Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:32  2023-04-24T05:39:32.418Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.418Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40366 to target https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.418Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:32  2023-04-24T05:39:32.424Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:32  2023-04-24T05:39:32.424Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:32  2023-04-24T05:39:32.445Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.446Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40360 due to socket.close
07:39:32  2023-04-24T05:39:32.454Z cypress:plugin:ntlm-auth ProxyToServer websocket closed due to connectivity issue, terminating ClientToProxy websocket. Target: wss://product-etesting.company.com/sockjs/552/j235qgbf/websocket
07:39:32  2023-04-24T05:39:32.460Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.460Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:32  2023-04-24T05:39:32.461Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:32  2023-04-24T05:39:32.466Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.466Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40380 to target https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.466Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:32  2023-04-24T05:39:32.467Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:32  2023-04-24T05:39:32.468Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:32  2023-04-24T05:39:32.485Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.486Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40366 due to socket.close
07:39:32  2023-04-24T05:39:32.499Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.499Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:32  2023-04-24T05:39:32.499Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:32  2023-04-24T05:39:32.506Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:32  2023-04-24T05:39:32.507Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:32  2023-04-24T05:39:32.521Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.522Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40380 due to socket.close
07:39:32  2023-04-24T05:39:32.550Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.551Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40390 to target https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.552Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:32  2023-04-24T05:39:32.566Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.566Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40400 to target https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.566Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:32  2023-04-24T05:39:32.573Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.573Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40402 to target https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.573Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:32  2023-04-24T05:39:32.586Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.586Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:32  2023-04-24T05:39:32.586Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:32  2023-04-24T05:39:32.593Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:32  2023-04-24T05:39:32.593Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:32  2023-04-24T05:39:32.598Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.599Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:32  2023-04-24T05:39:32.599Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:32  2023-04-24T05:39:32.605Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.605Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:32  2023-04-24T05:39:32.605Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:32  2023-04-24T05:39:32.606Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:32  2023-04-24T05:39:32.606Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:32  2023-04-24T05:39:32.607Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.608Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40390 due to socket.close
07:39:32  2023-04-24T05:39:32.612Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:32  2023-04-24T05:39:32.612Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:32  2023-04-24T05:39:32.621Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.622Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40400 due to socket.close
07:39:32  2023-04-24T05:39:32.625Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.631Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40402 due to socket.close
07:39:32  2023-04-24T05:39:32.655Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.655Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40404 to target https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.655Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:32  2023-04-24T05:39:32.689Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.689Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:32  2023-04-24T05:39:32.690Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:32  2023-04-24T05:39:32.697Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:32  2023-04-24T05:39:32.697Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:32  2023-04-24T05:39:32.702Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.702Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40414 to target https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.702Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:32  2023-04-24T05:39:32.733Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:32  2023-04-24T05:39:32.734Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:32  2023-04-24T05:39:32.734Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:32  2023-04-24T05:39:32.740Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:32  2023-04-24T05:39:32.741Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:32  2023-04-24T05:39:32.757Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.757Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:32  2023-04-24T05:39:32.758Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40414 due to socket.close
07:39:32  2023-04-24T05:39:32.758Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40404 due to socket.close
07:39:33  2023-04-24T05:39:32.784Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:32.785Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40430 to target https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:32.785Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:33  2023-04-24T05:39:32.817Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:32.817Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:33  2023-04-24T05:39:32.817Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:33  2023-04-24T05:39:32.825Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:33  2023-04-24T05:39:32.826Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:33  2023-04-24T05:39:32.842Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:32.843Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40430 due to socket.close
07:39:33  2023-04-24T05:39:32.918Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:32.918Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40438 to target https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:32.918Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:33  2023-04-24T05:39:32.920Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:32.920Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40444 to target https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:32.920Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:33  2023-04-24T05:39:32.954Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:32.955Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:33  2023-04-24T05:39:32.955Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:33  2023-04-24T05:39:32.957Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:32.958Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:33  2023-04-24T05:39:32.958Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:33  2023-04-24T05:39:32.962Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:33  2023-04-24T05:39:32.962Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:33  2023-04-24T05:39:32.965Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:33  2023-04-24T05:39:32.965Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:33  2023-04-24T05:39:32.979Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:32.981Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40438 due to socket.close
07:39:33  2023-04-24T05:39:33.395Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:33.402Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40444 due to socket.close
07:39:33  2023-04-24T05:39:33.418Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:33.418Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40446 to target https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:33.418Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:33  2023-04-24T05:39:33.450Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:33.450Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:33  2023-04-24T05:39:33.450Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:33  2023-04-24T05:39:33.457Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:33  2023-04-24T05:39:33.457Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:33  2023-04-24T05:39:33.471Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:33.472Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40446 due to socket.close
07:39:33  2023-04-24T05:39:33.598Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:33.598Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40454 to target https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:33.598Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:33  2023-04-24T05:39:33.602Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:33.602Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40462 to target https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:33.602Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:33  2023-04-24T05:39:33.629Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:33.629Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:33  2023-04-24T05:39:33.629Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:33  2023-04-24T05:39:33.633Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:33.633Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:33  2023-04-24T05:39:33.633Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:33  2023-04-24T05:39:33.636Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:33  2023-04-24T05:39:33.636Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:33  2023-04-24T05:39:33.640Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:33  2023-04-24T05:39:33.640Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:33  2023-04-24T05:39:33.653Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:33.654Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:33.655Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40462 due to socket.close
07:39:33  2023-04-24T05:39:33.655Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40454 due to socket.close
07:39:33  2023-04-24T05:39:33.705Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:33.706Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40474 to target https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:33.706Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:33  2023-04-24T05:39:33.714Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:33.714Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40490 to target https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:33.714Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:33  2023-04-24T05:39:33.738Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:33.738Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:33  2023-04-24T05:39:33.738Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:33  2023-04-24T05:39:33.745Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:33  2023-04-24T05:39:33.745Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:33  2023-04-24T05:39:33.746Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:33.746Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:33  2023-04-24T05:39:33.746Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:33  2023-04-24T05:39:33.752Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:33  2023-04-24T05:39:33.754Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:33  2023-04-24T05:39:33.768Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:33.769Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40490 due to socket.close
07:39:33  2023-04-24T05:39:33.788Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:33.789Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40474 due to socket.close
07:39:33  2023-04-24T05:39:33.806Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:33.806Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40504 to target https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:33.806Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:33  2023-04-24T05:39:33.838Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:33.838Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:33  2023-04-24T05:39:33.838Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:33  2023-04-24T05:39:33.845Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:33  2023-04-24T05:39:33.845Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:33  2023-04-24T05:39:33.860Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:33.860Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40504 due to socket.close
07:39:33  2023-04-24T05:39:33.872Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:33.872Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40514 to target https://product-etesting.company.com/
07:39:33  2023-04-24T05:39:33.872Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:33  2023-04-24T05:39:33.903Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:33  2023-04-24T05:39:33.903Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:33  2023-04-24T05:39:33.903Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:33  2023-04-24T05:39:33.910Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:33  2023-04-24T05:39:33.911Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:34  2023-04-24T05:39:34.500Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:34  2023-04-24T05:39:34.501Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40514 due to socket.close
07:39:34  2023-04-24T05:39:34.562Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:34  2023-04-24T05:39:34.562Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40524 to target https://product-etesting.company.com/
07:39:34  2023-04-24T05:39:34.562Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:34  2023-04-24T05:39:34.593Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:34  2023-04-24T05:39:34.594Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:34  2023-04-24T05:39:34.594Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:34  2023-04-24T05:39:34.600Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:34  2023-04-24T05:39:34.601Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40530 to target https://product-etesting.company.com/
07:39:34  2023-04-24T05:39:34.601Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:34  2023-04-24T05:39:34.602Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:34  2023-04-24T05:39:34.602Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:34  2023-04-24T05:39:34.631Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:34  2023-04-24T05:39:34.632Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:34  2023-04-24T05:39:34.632Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:34  2023-04-24T05:39:34.638Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:34  2023-04-24T05:39:34.639Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:34  2023-04-24T05:39:34.655Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:34  2023-04-24T05:39:34.656Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40530 due to socket.close
07:39:34  2023-04-24T05:39:34.656Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:34  2023-04-24T05:39:34.657Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40524 due to socket.close
07:39:34  2023-04-24T05:39:34.697Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:34  2023-04-24T05:39:34.697Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40546 to target https://product-etesting.company.com/
07:39:34  2023-04-24T05:39:34.697Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:34  2023-04-24T05:39:34.727Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:34  2023-04-24T05:39:34.727Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:34  2023-04-24T05:39:34.727Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:34  2023-04-24T05:39:34.734Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:34  2023-04-24T05:39:34.734Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:34  2023-04-24T05:39:34.749Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:34  2023-04-24T05:39:34.751Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40546 due to socket.close
07:39:34  2023-04-24T05:39:34.788Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:34  2023-04-24T05:39:34.788Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40556 to target https://product-etesting.company.com/
07:39:34  2023-04-24T05:39:34.788Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:34  2023-04-24T05:39:34.792Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:34  2023-04-24T05:39:34.792Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40560 to target https://product-etesting.company.com/
07:39:34  2023-04-24T05:39:34.792Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:34  2023-04-24T05:39:34.821Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:34  2023-04-24T05:39:34.821Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:34  2023-04-24T05:39:34.821Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:34  2023-04-24T05:39:34.824Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:34  2023-04-24T05:39:34.825Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:34  2023-04-24T05:39:34.825Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:34  2023-04-24T05:39:34.828Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:34  2023-04-24T05:39:34.828Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:34  2023-04-24T05:39:34.832Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:34  2023-04-24T05:39:34.832Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:34  2023-04-24T05:39:34.843Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:34  2023-04-24T05:39:34.844Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40556 due to socket.close
07:39:35  2023-04-24T05:39:34.864Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:35  2023-04-24T05:39:34.865Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40560 due to socket.close
07:39:35  2023-04-24T05:39:34.888Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:35  2023-04-24T05:39:34.888Z cypress:plugin:ntlm-auth Created agent for client 127.0.0.1:40562 to target https://product-etesting.company.com/
07:39:35  2023-04-24T05:39:34.888Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:35  2023-04-24T05:39:34.921Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:35  2023-04-24T05:39:34.921Z cypress:plugin:ntlm-auth Received 401 with NTLM in www-authenticate header. Starting handshake.
07:39:35  2023-04-24T05:39:34.921Z cypress:plugin:ntlm-auth Sending  NTLM message type 1
07:39:35  2023-04-24T05:39:34.928Z cypress:plugin:ntlm-auth Received NTLM message type 2, using NTLMv2
07:39:35  2023-04-24T05:39:34.929Z cypress:plugin:ntlm-auth Sending NTLM message type 3 with initial client request
07:39:35  2023-04-24T05:39:34.943Z cypress:plugin:ntlm-auth NTLM authentication successful with host https://product-etesting.company.com/
07:39:35  2023-04-24T05:39:34.943Z cypress:plugin:ntlm-auth Removed agent for 127.0.0.1:40562 due to socket.close
07:39:35  2023-04-24T05:39:34.957Z cypress:plugin:ntlm-auth getTargetHost - host header  product-etesting.company.com
07:39:35  2023-04-24T05:39:34.958Z cypress:plugin:ntlm-auth Request to https://product-etesting.company.com/ in registered NTLM Hosts
07:39:35  node:_http_client:164
07:39:35      throw new ERR_INVALID_PROTOCOL(protocol, expectedProtocol);
07:39:35      ^
07:39:35  
07:39:35  TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
07:39:35      at new NodeError (node:internal/errors:372:5)
07:39:35      at new ClientRequest (node:_http_client:164:11)
07:39:35      at Object.request (node:https:353:10)
07:39:35      at makeProxyToServerRequest (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:837:38)
07:39:35      at /usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:830:16
07:39:35      at wrapper (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:271:20)
07:39:35      at eachOfArrayLike (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:490:13)
07:39:35      at eachOf (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:626:16)
07:39:35      at awaitable (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:211:32)
07:39:35      at Object.eachLimit (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:2691:16)
07:39:35      at Object.awaitable (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:211:32)
07:39:35      at Proxy._onRequestHeaders (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:972:9)
07:39:35      at /usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/@bjowes/http-mitm-proxy/lib/proxy.js:826:19
07:39:35      at wrapper (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:271:20)
07:39:35      at iteratorCallback (/usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:501:17)
07:39:35      at /usr/local/lib/node_modules/cypress-ntlm-auth/node_modules/async/dist/async.js:327:20 {
07:39:35    code: 'ERR_INVALID_PROTOCOL'
07:39:35  }
07:39:35  [Pipeline] }
07:39:35  [Pipeline] // script
07:39:35  [Pipeline] }
07:39:35  [Pipeline] // timeout
07:39:35  [Pipeline] echo
bjowes commented 1 year ago

Thanks for the logs. I've made some initial investigations but need to continue. Can you estimate for how long cypress with plugin had been running when this occurred?

Matebo commented 1 year ago

The job takes 30-40 minutes and runs once every day.

bjowes commented 1 year ago

Ok, finally had some time to dig deeper into this. The only likely candidate I have found is that a call to the config API is done on a HTTPS connection (which it doesn't support), and later the same connection is reused to call another site. I have created a beta version that implements a check for config API calls to ensure they are on HTTP before taking any actions on the connection.

You can try the beta by installing cypress-ntlm-auth@4.1.3-beta.0

Generally the config API would never be called on a HTTPS connection if only the cy.ntlm, cy.ntlmSso, cy.ntlmReset commands are used. For custom requests to config API, (using cy.request or similar) - all bets are off, the client needs to ensure they use HTTP only. But what I suspect is that something in your test suite is repeatedly using new ports on your test machine. If these ports are assigned randomly or in a sequence, there is a risk that occasionally it will collide with the config API port. That could trigger the behaviour that we see. However, if this is the case, there should also be some other disturbance in your tests, since the request that ended up with the config API was intended for some other service. If this theory is correct, you should code your tests to avoid reusing the ports that are already allocated by cypress and the ntlm-proxy. For the ntlm-proxy it is possible to set specific ports using environment variables, but there will always be other services on the machine using ports that you need to avoid, so a generic solution that detects free ports would likely be more robust.

bjowes commented 9 months ago

Any update on this, did you try out the beta?

Matebo commented 9 months ago

Sorry not yet, my co-workers are picking it up and they are currently doing a major update of our software. I will keep you up to date