Reload issue in TeamCity(headless mode) #2040
P-Neha
started this conversation in
Development
Replies: 1 comment 3 replies
-
can you please provide us with more info regarding the environment(os, node version, taiko version) to analyse the issue, also is this issue happening locally as well when run on headless mode? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to reload my website if the contents of the website don't load properly on the first instance. The reload action works fine when the headless mode is set to false. In teamcity I run the script in headless mode and I'm seeing this below issue. Could someone please help me on this?
Code:
if(await text("Log In").exists() == false){
await reload(process.env.LOGIN_URL);
await waitFor(text("Log In"));
}
Error in headless mode if reload occurs:
Error: socket hang up
[15:14:07][Step 3/4] at connResetException (node:internal/errors:642:14)
[15:14:07][Step 3/4] at Socket.socketCloseListener (node:_http_client:435:25)
[15:14:07][Step 3/4] at Socket.emit (node:events:390:22)
[15:14:07][Step 3/4] at TCP. (node:net:665:12) {
[15:14:07][Step 3/4] code: 'ECONNRESET'
[15:14:07][Step 3/4] }
Beta Was this translation helpful? Give feedback.
All reactions