Title: async afterEach with browser/session.end causes 500 · Issue #79 · browserstack/browserstack-local-nodejs · GitHub
Open Graph Title: async afterEach with browser/session.end causes 500 · Issue #79 · browserstack/browserstack-local-nodejs
X Title: async afterEach with browser/session.end causes 500 · Issue #79 · browserstack/browserstack-local-nodejs
Description: Expected Behavior Another session to start up for the 2. test case. Actual Behavior test case failes with errors: Response 500 POST http://hub-cloud.browserstack.com/wd/hub/session/a72b7db656837fb9ed3ae3529967ee8f1d5e359b/url (1121ms) ch...
Open Graph Description: Expected Behavior Another session to start up for the 2. test case. Actual Behavior test case failes with errors: Response 500 POST http://hub-cloud.browserstack.com/wd/hub/session/a72b7db656837fb9...
X Description: Expected Behavior Another session to start up for the 2. test case. Actual Behavior test case failes with errors: Response 500 POST http://hub-cloud.browserstack.com/wd/hub/session/a72b7db656837fb9...
Opengraph URL: https://github.com/browserstack/browserstack-local-nodejs/issues/79
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"async afterEach with browser/session.end causes 500","articleBody":"## Expected Behavior\r\n\r\nAnother session to start up for the 2. test case.\r\n\r\n## Actual Behavior\r\n\r\n2. test case failes with errors:\r\n```\r\n Response 500 POST http://hub-cloud.browserstack.com/wd/hub/session/a72b7db656837fb9ed3ae3529967ee8f1d5e359b/url (1121ms) \r\n chrome { state: 'unhandled error', \r\n chrome sessionId: 'a72b7db656837fb9ed3ae3529967ee8f1d5e359b', \r\n chrome value: \r\n chrome { systemInformation: \r\n chrome 'System info: host: \\'185-200-100-56\\', ip: \\'185.200.100.56\\', os.name: \\'windows\\', os.arch: \\'x86\\', os.version: \\'6.3\\', java.version: \\'1.8.0_181\\'', \r\n chrome message: 'Session ID is null. Using WebDriver after calling quit()?', \r\n chrome error: \r\n chrome [ 'Build info: version: \\'2.53.0\\', revision: \\'35ae25b\\', time: \\'2016-03-15 17:00:58\\'', \r\n chrome 'System info: host: \\'185-200-100-56\\', ip: \\'185.200.100.56\\', os.name: \\'windows\\', os.arch: \\'x86\\', os.version: \\'6.3\\', java.version: \\'1.8.0_181\\'', \r\n chrome 'Driver info: driver.version: EventFiringWebDriver' ] }, \r\n chrome status: 13 } \r\n chrome Error while running .navigateTo() protocol action: Session ID is null. Using WebDriver after calling quit()?\r\n```\r\n\r\n## Steps to Reproduce the Problem\r\n\r\n 1. setup a test module with multiple tests cases\r\n 2. setup a async afterEach that closes the session:\r\n```\r\n afterEach: async (browser, done) => { \r\n browser.end();\r\n ...\r\n done(); \r\n }\r\n```\r\n 3. run\r\n\r\n## browserstack local arguments\r\n\r\nno arguments. unmodified runner from:\r\nhttps://www.browserstack.com/automate/nightwatch#running-local-test\r\n\r\n## Platform details\r\n \r\n 1. browserstack-local-nodejs version: 1.4.0\r\n 2. node version: v10.15.2\r\n 3. os type and version: ubuntu 18\r\n\r\n## Details\r\n\r\nThis works fine when runing without bs_local, both running on browserstack against a publicly available web-page, and running locally with chromedriver.\r\n","author":{"url":"https://github.com/henrikq-vipps","@type":"Person","name":"henrikq-vipps"},"datePublished":"2019-07-03T11:19:22Z","url":"https://github.com/browserstack/browserstack-local-nodejs/issues/79"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e716b068-485e-1469-a9f5-ca9c52ca4023 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B69C:3142F0:608F:7B3E:6B04304D |
| html-safe-nonce | 9a1a06cc5a6f654fc839faa4cae662ce25ad28c9c45617094480a079816160b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjlDOjMxNDJGMDo2MDhGOjdCM0U6NkIwNDMwNEQiLCJ2aXNpdG9yX2lkIjoiNzQwODIwNTg5NzQyNTc2MDMzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3f5d27b4adeefb0803e51da498b0f4fc098036e2a98bb98642f61136e7f4af1c |
| hovercard-subject-tag | issue:463694519 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/browserstack/browserstack-local-nodejs/79/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b1dee4f36dab224442629737189ea1538a24ccb66f1d1990d8873fff1eba8d26/browserstack/browserstack-local-nodejs/issues/79 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b1dee4f36dab224442629737189ea1538a24ccb66f1d1990d8873fff1eba8d26/browserstack/browserstack-local-nodejs/issues/79 |
| og:image:alt | Expected Behavior Another session to start up for the 2. test case. Actual Behavior test case failes with errors: Response 500 POST http://hub-cloud.browserstack.com/wd/hub/session/a72b7db656837fb9... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | henrikq-vipps |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/browserstack/browserstack-local-nodejs git https://github.com/browserstack/browserstack-local-nodejs.git |
| octolytics-dimension-user_id | 1119453 |
| octolytics-dimension-user_login | browserstack |
| octolytics-dimension-repository_id | 51923223 |
| octolytics-dimension-repository_nwo | browserstack/browserstack-local-nodejs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 51923223 |
| octolytics-dimension-repository_network_root_nwo | browserstack/browserstack-local-nodejs |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width