testcafe-browser-provider-browserstack icon indicating copy to clipboard operation
testcafe-browser-provider-browserstack copied to clipboard

Client stopped session

Open willhowlett opened this issue 6 years ago • 9 comments

I'm experimenting using this (with a codeceptjs / testcafe setup) and am finding my sessions are always stopped before the test can register as passed. Has anyone experienced similar problems? Many thanks

Screen Shot 2019-10-31 at 14 58 35

Browserstack log:

2019-10-31 14:46:45:531 REQUEST [2019-10-31 14:46:45:531] POST /session {"desiredCapabilities":{"browserstack.localIdentifier":1572533177321,"browserstack.local":true,"os":"Windows","os_version":"10","browser":"edge","device":null,"browser_version":"18.0","real_mobile":null,"browserstack.debug":true,"browserstack.networkLogs":true,"name":"TestCafe test run OHjs4DT","acceptSslCert":false}}
2019-10-31 14:46:45:531 START_SESSION 
2019-10-31 14:46:45:531 REQUEST [2019-10-31 14:46:45:531] GET /session/87c1ff33b677649c0cf77d5c0ab5ad01ed07ed0e
2019-10-31 14:46:45:531 RESPONSE {"value":{"sessionId":"87c1ff33b677649c0cf77d5c0ab5ad01ed07ed0e","capabilities":{"proxy":{},"acceptInsecureCerts":false,"browserVersion":"44.18362.1.0","timeouts":{"implicit":0,"pageLoad":300000,"script":30000},"browserName":"MicrosoftEdge","pageLoadStrategy":"normal","platformName":"windows","setWindowRect":false}}}
2019-10-31 14:46:46:64 REQUEST [2019-10-31 14:46:46:64] POST /session/87c1ff33b677649c0cf77d5c0ab5ad01ed07ed0e/url {"url":"http://localhost:64993/browser/connect/OHjs4DT"}
2019-10-31 14:46:47:632 DEBUG https://s3.amazonaws.com/testautomation/87c1ff33b677649c0cf77d5c0ab5ad01ed07ed0e/screenshot-3343c10065.jpeg
2019-10-31 14:46:47:632 RESPONSE {"value":null,"sessionId":"5FF1C5FC-6557-4A93-A28A-4B868E51CD01","status":0}
2019-10-31 14:47:12:89 STOP_SESSION {"status":0,"sessionId":"87c1ff33b677649c0cf77d5c0ab5ad01ed07ed0e","value":{"message":"CLIENT_STOPPED_SESSION"},"errorStack":{}}

willhowlett avatar Oct 31 '19 15:10 willhowlett

Hi @willhowlett

I am afraid this information is not sufficient to find the cause of the issue. Could you please provider a small example so that we can reproduce it on our side?

miherlosev avatar Nov 01 '19 11:11 miherlosev

Hi @miherlosev - thanks for the response!

I've setup a minimal repro here: https://github.com/willhowlett/codeceptexample

Hopefully I'm just doing something stupid! Please let me know if you need any further info. Thanks again

willhowlett avatar Nov 04 '19 14:11 willhowlett

Hi @miherlosev - thanks for the response!

I've setup a minimal repro here: https://github.com/willhowlett/codeceptexample

Hopefully I'm just doing something stupid! Please let me know if you need any further info. Thanks again

Hi Will,

can I ask you, if you somehow resolved this issue? We've been having similar issue, that is happening only, when we run tests in bstack from Jenkins on chrome 81.0 version. Than we have client_stopped_session as the last info in failed test.

Thank you for your answer. Phil

fidloch avatar Jun 29 '22 08:06 fidloch

Sorry. I haven’t used codecept for a long time now :)

On Wed, 29 Jun 2022 at 09:20, fidloch @.***> wrote:

Hi @miherlosev https://github.com/miherlosev - thanks for the response!

I've setup a minimal repro here: https://github.com/willhowlett/codeceptexample

Hopefully I'm just doing something stupid! Please let me know if you need any further info. Thanks again

Hi Will,

can I ask you, if you somehow resolved this issue? We've been having similar issue, that is happening only, when we run tests in bstack from Jenkins on chrome 81.0 version. Than we have client_stopped_session as the last info in failed test.

Thank you for your answer. Phil

— Reply to this email directly, view it on GitHub https://github.com/DevExpress/testcafe-browser-provider-browserstack/issues/92#issuecomment-1169677925, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWPHONEUXWKYDTD5KWRZEDVRQBMRANCNFSM4JHLR7IA . You are receiving this because you were mentioned.Message ID: <DevExpress/testcafe-browser-provider-browserstack/issues/92/1169677925@ github.com>

willhowlett avatar Jun 29 '22 15:06 willhowlett

any solution for client stopped session

RahulSmartcloudPFQA avatar Sep 05 '22 06:09 RahulSmartcloudPFQA

Hi, I managed to reproduce the issue. However, it may be related to CodeceptJS. Please try to reproduce this issue without CodeceptJS. If you can, please share an example with us. If not, I recommend you report the issue to CodeceptJS.

Aleksey28 avatar Sep 06 '22 08:09 Aleksey28

@RahulSmartcloudPFQA Were you able to find a solution to this? I am also facing the same issue. Thanks

SivasubramanianV avatar Aug 11 '23 18:08 SivasubramanianV

Were you able to find the issue? Can you please share if you have find a solution for it?

dalciax avatar Nov 14 '23 23:11 dalciax

No updates yet. Once we make more progress, we will leave a comment.

github-actions[bot] avatar Nov 16 '23 07:11 github-actions[bot]

This issue has been automatically marked as stale because it has not had any activity for a long period. It will be closed and archived if no further activity occurs. However, we may return to this issue in the future. If it still affects you or you have any additional information regarding it, please leave a comment and we will keep it open.

github-actions[bot] avatar Jun 11 '24 01:06 github-actions[bot]

We're closing this issue after a prolonged period of inactivity. If it still affects you, please add a comment to this issue with up-to-date information. Thank you.

github-actions[bot] avatar Jun 22 '24 01:06 github-actions[bot]

Facing this issue while executing mobile automation scripts on browser stack for parallel execution.

deepAirBase avatar Jul 05 '24 08:07 deepAirBase