Closed richardmward closed 1 year ago
Having the same issue. Interestingly it only happens when calling cy2.run I can successfully run using the CLI
@richardmward @pkell would appreciate if you share:
cy2
@agoldis Is there a specific debug i should set for cypress to cut it down to what you need? I did just notice this when running programmatically
cypress:network:agent Creating proxied socket for https://mytesturl/ through https://undefined +2ms
The undefined is instead cypress:network:agent Creating proxied socket for https://mytesturl/ through http://127.0.0.1:62761 +4ms when running through CLI
@richardmward @pkell Please try cy2@4.0.2
Reopening until received the confirmation
That works, thanks (and thanks for changing to Partial<CypressCommandLine.CypressRunOptions>
- I was going to raise that!)
The promise still doesn't resolve, so it ends up never returning from await run(...)
. The logs after the test run are as follows, and then it just sits there:
cypress:server:cypress about to exit with code 5 +2m
cypress:server:browsers browsers.kill called with no active instance +9s
cypress:proxy:http:util:prerequests metrics: { browserPreRequestsReceived: 140, proxyRequestsReceived: 10, immediatelyMatchedRequests: 10, unmatchedRequests: 0, unmatchedPreRequests: 106 } +0ms
───────────────────────────────────────────────────────────────────────────────────────────────────────
Recorded Run: https://my-director-service.com/run/2a1898e59103f870b53e178d5a46eece
cypress:cli child event fired { event: 'exit', code: 5, signal: null } +2m
cypress:cli child event fired { event: 'close', code: 5, signal: null } +1ms
@richardmward this should resolve the issue with a hung promise. Please try out cy2@4.0.3
Spot on. Thank you!
@agoldis Works perfectly now. Thanks again!
🎉
Before opening, please confirm:
Environment information
Describe the bug
Using cy2 4.0.1 and Cypress 12.3.0 I am unable to use the new
run
command with anhttps
baseUrl
in my config (see logs below). This was working a few days ago as I was just having trouble then with the command not returning the promise (https://github.com/sorry-cypress/cy2/issues/38#issuecomment-1371027760).Expected behavior
To be able to use an
https
baseUrl
.Log and debug output
Additional information and screenshots
Self hosted Sorry Cypress instance