karma-runner / karma-sauce-launcher

A Karma plugin. Launch any browser on SauceLabs!
MIT License
199 stars 103 forks source link

Error is thrown when trying to run the connector #230

Open jarrodek opened 4 years ago

jarrodek commented 4 years ago

I started seeing some weird errors. The following is (truncated) exec logs.

START:
05 11 2020 10:43:50.784:WARN [filelist]: Pattern "/home/pawel/workspace/arc/amf-helper-mixin/__snapshots__/**/*.md" does not match any file.
05 11 2020 10:43:50.804:INFO [karma-server]: Karma v5.2.3 server started at http://localhost:9878/
05 11 2020 10:43:50.804:INFO [launcher]: Launching browsers ChromeHeadlessNoSandbox, SL_Chrome, SL_Chrome-1, SL_Firefox, SL_Firefox-1, SL_Safari, SL_Safari-1, SL_EDGE, SL_EDGE-1 with concurrency unlimited
05 11 2020 10:43:50.808:INFO [launcher]: Starting browser ChromeHeadless
05 11 2020 10:43:50.815:INFO [launcher]: Starting browser chrome latest Windows 10 on SauceLabs
05 11 2020 10:43:50.830:INFO [launcher]: Starting browser chrome latest-1 Windows 10 on SauceLabs
05 11 2020 10:43:50.831:INFO [launcher]: Starting browser firefox latest Windows 10 on SauceLabs
05 11 2020 10:43:50.838:INFO [launcher]: Starting browser firefox latest-1 Windows 10 on SauceLabs
05 11 2020 10:43:50.838:INFO [launcher]: Starting browser safari latest macOS 10.13 on SauceLabs
05 11 2020 10:43:50.838:INFO [launcher]: Starting browser safari latest-1 macOS 10.13 on SauceLabs
05 11 2020 10:43:50.838:INFO [launcher]: Starting browser microsoftedge latest Windows 10 on SauceLabs
05 11 2020 10:43:50.838:INFO [launcher]: Starting browser microsoftedge latest-1 Windows 10 on SauceLabs
05 11 2020 10:43:51.103:INFO [Chrome Headless 88.0.4300.0 (Linux x86_64)]: Connected on socket uQhvTH11QESdF977AAAA with id 42952097
05 11 2020 10:57:05.796:ERROR [karma-server]: UncaughtException:: Cannot read property 'results' of undefined
05 11 2020 10:57:05.798:ERROR [SaucelabsLauncher]: Could not quit the Saucelabs selenium connection. Failure message:
05 11 2020 10:57:05.799:ERROR [SaucelabsLauncher]: TypeError: Cannot read property 'deleteSession' of null
    at SaucelabsLauncher.<anonymous> (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma-sauce-launcher/dist/launcher/launcher.js:139:26)
    at Generator.next (<anonymous>:null:null)
    at /home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma-sauce-launcher/dist/launcher/launcher.js:8:71
    at new Promise (<anonymous>:null:null)
    at __awaiter (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma-sauce-launcher/dist/launcher/launcher.js:4:12)
    at SaucelabsLauncher.<anonymous> (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma-sauce-launcher/dist/launcher/launcher.js:131:31)
    at SaucelabsLauncher.emit (events.js:315:20)
    at SaucelabsLauncher.EventEmitter.emit (domain.js:486:12)
    at SaucelabsLauncher.emitAsync (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/events.js:52:10)
    at SaucelabsLauncher.BaseLauncher.kill (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/launchers/base.js:61:27)
    at SaucelabsLauncher.BaseLauncher.forceKill (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/launchers/base.js:71:10)
    at /home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/launcher.js:172:35
    at Array.map (<anonymous>:null:null)
    at Launcher.killAll (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/launcher.js:172:10)
    at Server.<anonymous> (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/launcher.js:51:49)
    at Server.emit (events.js:327:22)
    at Server.EventEmitter.emit (domain.js:486:12)
    at Server.emitExitAsync (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/server.js:155:12)
    at disconnectBrowsers (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/server.js:387:12)
    at reportError (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/server.js:419:7)
    at process.<anonymous> (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/server.js:430:7)
    at process.emit (events.js:327:22)
    at process.EventEmitter.emit (domain.js:486:12)
    at process._fatalException (internal/process/execution.js:156:25)

05 11 2020 10:57:05.801:ERROR [karma-server]: TypeError: Cannot read property 'results' of undefined
    at SaucelabsReporter.onSpecComplete (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma-sauce-launcher/dist/reporter/reporter.js:29:35)
    at Server.<anonymous> (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/events.js:40:26)
    at Server.emit (events.js:327:22)
    at Server.EventEmitter.emit (domain.js:486:12)
    at Browser.onResult (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/browser.js:159:20)
    at Socket.<anonymous> (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/browser.js:209:42)
    at Socket.emit (events.js:315:20)
    at /home/pawel/workspace/arc/amf-helper-mixin/node_modules/socket.io/lib/socket.js:528:12
    at processTicksAndRejections (internal/process/task_queues.js:75:11)

TypeError: Cannot read property 'results' of undefined
    at SaucelabsReporter.onSpecComplete (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma-sauce-launcher/dist/reporter/reporter.js:29:35)
    at Server.<anonymous> (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/events.js:40:26)
    at Server.emit (events.js:327:22)
    at Server.EventEmitter.emit (domain.js:486:12)
    at Browser.onResult (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/browser.js:159:20)
    at Socket.<anonymous> (/home/pawel/workspace/arc/amf-helper-mixin/node_modules/karma/lib/browser.js:209:42)
    at Socket.emit (events.js:315:20)
    at /home/pawel/workspace/arc/amf-helper-mixin/node_modules/socket.io/lib/socket.js:528:12
    at processTicksAndRejections (internal/process/task_queues.js:75:11)

I am not sure where exactly the problem is. I was trying to change the configuration to bare minimum, then i tried to copy the configuration from the readme file but still no luck. Regular karma tests are executed locally and on Travis. The errors start only when trying to run SL tests. I am hoping for a help with solving this.

wswebcreation commented 4 years ago

Hi @jarrodek

It looks like the driver is closed somewhere, based on this part of the log UncaughtException:: Cannot read property 'results' of undefined Can you provide a reproducible example so we can debug this?

jarrodek commented 4 years ago

@TwoPlusTwoOne could you please reproduce this in a separate repo? Please, create a new repo in our org with this issue.

simllll commented 3 years ago

Stumpled upon the same thing, I just took https://github.com/axios/axios and upgraded all deps to:

{
    "bundlesize": "^0.18.0",
    "coveralls": "^3.1.0",
    "es6-promise": "^4.2.8",
    "grunt": "^1.3.0",
    "grunt-banner": "^0.6.0",
    "grunt-cli": "^1.3.2",
    "grunt-contrib-clean": "^2.0.0",
    "grunt-contrib-watch": "^1.1.0",
    "grunt-eslint": "^23.0.0",
    "grunt-karma": "^4.0.0",
    "grunt-mocha-test": "^0.13.3",
    "grunt-ts": "^6.0.0-beta.22",
    "grunt-webpack": "^4.0.2",
    "istanbul-instrumenter-loader": "^3.0.1",
    "jasmine-core": "^3.6.0",
    "karma": "^5.2.3",
    "karma-chrome-launcher": "^3.1.0",
    "karma-coverage": "^2.0.3",
    "karma-firefox-launcher": "^2.1.0",
    "karma-jasmine": "^4.0.1",
    "karma-jasmine-ajax": "^0.1.13",
    "karma-opera-launcher": "^1.0.0",
    "karma-safari-launcher": "^1.0.0",
    "karma-sauce-launcher": "^4.3.3",
    "karma-sinon": "^1.0.5",
    "karma-sourcemap-loader": "^0.3.8",
    "karma-webpack": "^4.0.2",
    "load-grunt-tasks": "^5.1.0",
    "minimist": "^1.2.5",
    "mocha": "^8.2.1",
    "sinon": "^9.2.1",
    "typescript": "^4.0.5",
    "url-search-params": "^0.10.0",
    "webpack": "^4.44.2",
    "webpack-dev-server": "^3.11.0"
  }

if you run npm run test afterwards, you will get the same error.

wswebcreation commented 3 years ago

Thanks @simllll

Will take a look at it tomorrow and let you know

wswebcreation commented 3 years ago

@simllll

I cloned the project, updated the dependencies as mentioned and adjust the webpack.config.js and got the following as seen below. I only got some dependency errors, but for the rest it worked. What are you seeing then?

 npm run test -- --force

> axios@0.21.0 test /Users/wimselles/Sauce/Git/karma/axios
> grunt test "--force"

Running "eslint:target" (eslint) task

/Users/wimselles/Sauce/Git/karma/axios/lib/utils.js
  5:10  error  'toString' is already defined as a built-in global variable  no-redeclare

✖ 1 problem (1 error, 0 warnings)

Warning: Task "eslint:target" failed. Used --force, continuing.

Running "mochaTest:test" (mochaTest) task

  supports http with nodejs
    ✓ should respect the timeout property (307ms)
    ✓ should allow passing JSON
    ✓ should allow passing JSON with BOM
    ✓ should redirect
    ✓ should not redirect
    ✓ should support max redirects
    ✓ should preserve the HTTP verb on redirect
    ✓ should support transparent gunzip
    ✓ should support gunzip error handling
    ✓ should support disabling automatic decompression of response data
    ✓ should support UTF8
    ✓ should support basic auth
    ✓ should support basic auth with a header
    ✓ should support max content length (104ms)
    ✓ should support max content length for redirected (105ms)
    ✓ should support max body length (107ms)
    ✓ should support sockets
    ✓ should support streams
    ✓ should pass errors for a failed stream
    ✓ should support buffers
    ✓ should support HTTP proxies
    ✓ should not pass through disabled proxy
    ✓ should support proxy set via env var
    ✓ should not use proxy for domains in no_proxy
    ✓ should use proxy for domains not in no_proxy
    ✓ should support HTTP proxy auth
    ✓ should support proxy auth from env
    ✓ should support proxy auth with header
    ✓ should support cancel
    ✓ should combine baseURL and url

  30 passing (755ms)

Running "karma:single" (karma) task
⚠ 「wdm」: Hash: d4e94cf661365475ea55
Version: webpack 4.44.2
Time: 42ms
Built at: 11/15/2020 3:29:54 PM

WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/
ℹ 「wdm」: Compiled with warnings.
ℹ 「wdm」: Compiling...
⚠ 「wdm」: Hash: dcb81afd7678307ec3a4
Version: webpack 4.44.2
Time: 2562ms
Built at: 11/15/2020 3:29:58 PM
                                         Asset      Size  Chunks                    Chunk Names
                       test/specs/__helpers.js   201 KiB       1  [emitted]         test/specs/__helpers
                    test/specs/adapter.spec.js   116 KiB       0  [emitted]         test/specs/adapter.spec
                        test/specs/api.spec.js  14.5 KiB       2  [emitted]         test/specs/api.spec
                  test/specs/basicAuth.spec.js  7.35 KiB       3  [emitted]         test/specs/basicAuth.spec
                     test/specs/cancel.spec.js  14.2 KiB       4  [emitted]         test/specs/cancel.spec
              test/specs/cancel/Cancel.spec.js  9.55 KiB       5  [emitted]         test/specs/cancel/Cancel.spec
         test/specs/cancel/CancelToken.spec.js  18.9 KiB       6  [emitted]         test/specs/cancel/CancelToken.spec
            test/specs/cancel/isCancel.spec.js  9.51 KiB       7  [emitted]         test/specs/cancel/isCancel.spec
         test/specs/core/buildFullPath.spec.js  12.5 KiB       8  [emitted]         test/specs/core/buildFullPath.spec
           test/specs/core/createError.spec.js  14.6 KiB       9  [emitted]         test/specs/core/createError.spec
          test/specs/core/enhanceError.spec.js    12 KiB      10  [emitted]         test/specs/core/enhanceError.spec
           test/specs/core/mergeConfig.spec.js   125 KiB      11  [emitted]         test/specs/core/mergeConfig.spec
                test/specs/core/settle.spec.js  18.5 KiB      12  [emitted]         test/specs/core/settle.spec
         test/specs/core/transformData.spec.js  28.8 KiB      13  [emitted]         test/specs/core/transformData.spec
                   test/specs/defaults.spec.js  95.9 KiB      14  [emitted]         test/specs/defaults.spec
                    test/specs/headers.spec.js  15.2 KiB      15  [emitted]         test/specs/headers.spec
               test/specs/helpers/bind.spec.js  8.85 KiB      16  [emitted]         test/specs/helpers/bind.spec
           test/specs/helpers/buildURL.spec.js  56.6 KiB      17  [emitted]         test/specs/helpers/buildURL.spec
        test/specs/helpers/combineURLs.spec.js  10.5 KiB      18  [emitted]         test/specs/helpers/combineURLs.spec
            test/specs/helpers/cookies.spec.js  32.6 KiB      19  [emitted]         test/specs/helpers/cookies.spec
      test/specs/helpers/isAbsoluteURL.spec.js  10.6 KiB      20  [emitted]         test/specs/helpers/isAbsoluteURL.spec
       test/specs/helpers/isAxiosError.spec.js  13.6 KiB      21  [emitted]         test/specs/helpers/isAxiosError.spec
    test/specs/helpers/isURLSameOrigin.spec.js    32 KiB      22  [emitted]         test/specs/helpers/isURLSameOrigin.spec
test/specs/helpers/normalizeHeaderName.spec.js  28.8 KiB      23  [emitted]         test/specs/helpers/normalizeHeaderName.spec
       test/specs/helpers/parseHeaders.spec.js  32.9 KiB      24  [emitted]         test/specs/helpers/parseHeaders.spec
             test/specs/helpers/spread.spec.js  9.54 KiB      25  [emitted]         test/specs/helpers/spread.spec
                   test/specs/instance.spec.js  14.4 KiB      26  [emitted]         test/specs/instance.spec
               test/specs/interceptors.spec.js  25.2 KiB      27  [emitted]         test/specs/interceptors.spec
                    test/specs/options.spec.js    16 KiB      28  [emitted]         test/specs/options.spec
                   test/specs/progress.spec.js  15.2 KiB      29  [emitted]         test/specs/progress.spec
                    test/specs/promise.spec.js  11.8 KiB      30  [emitted]         test/specs/promise.spec
                   test/specs/requests.spec.js  38.8 KiB      31  [emitted]         test/specs/requests.spec
                  test/specs/transform.spec.js  13.1 KiB      32  [emitted]         test/specs/transform.spec
               test/specs/utils/extend.spec.js  28.1 KiB      33  [emitted]         test/specs/utils/extend.spec
              test/specs/utils/forEach.spec.js  29.2 KiB      34  [emitted]         test/specs/utils/forEach.spec
                  test/specs/utils/isX.spec.js   450 KiB      35  [emitted]  [big]  test/specs/utils/isX.spec
                test/specs/utils/merge.spec.js  32.8 KiB      36  [emitted]         test/specs/utils/merge.spec
                 test/specs/utils/trim.spec.js  26.7 KiB      37  [emitted]         test/specs/utils/trim.spec
                       test/specs/xsrf.spec.js  36.1 KiB      38  [emitted]         test/specs/xsrf.spec
Entrypoint test/specs/adapter.spec = test/specs/adapter.spec.js
Entrypoint test/specs/api.spec = test/specs/api.spec.js
Entrypoint test/specs/__helpers = test/specs/__helpers.js
Entrypoint test/specs/cancel.spec = test/specs/cancel.spec.js
Entrypoint test/specs/basicAuth.spec = test/specs/basicAuth.spec.js
Entrypoint test/specs/cancel/Cancel.spec = test/specs/cancel/Cancel.spec.js
Entrypoint test/specs/cancel/isCancel.spec = test/specs/cancel/isCancel.spec.js
Entrypoint test/specs/core/buildFullPath.spec = test/specs/core/buildFullPath.spec.js
Entrypoint test/specs/cancel/CancelToken.spec = test/specs/cancel/CancelToken.spec.js
Entrypoint test/specs/core/createError.spec = test/specs/core/createError.spec.js
Entrypoint test/specs/core/enhanceError.spec = test/specs/core/enhanceError.spec.js
Entrypoint test/specs/core/settle.spec = test/specs/core/settle.spec.js
Entrypoint test/specs/core/mergeConfig.spec = test/specs/core/mergeConfig.spec.js
Entrypoint test/specs/core/transformData.spec = test/specs/core/transformData.spec.js
Entrypoint test/specs/headers.spec = test/specs/headers.spec.js
Entrypoint test/specs/defaults.spec = test/specs/defaults.spec.js
Entrypoint test/specs/helpers/bind.spec = test/specs/helpers/bind.spec.js
Entrypoint test/specs/helpers/buildURL.spec = test/specs/helpers/buildURL.spec.js
Entrypoint test/specs/helpers/cookies.spec = test/specs/helpers/cookies.spec.js
Entrypoint test/specs/helpers/combineURLs.spec = test/specs/helpers/combineURLs.spec.js
Entrypoint test/specs/helpers/isAbsoluteURL.spec = test/specs/helpers/isAbsoluteURL.spec.js
Entrypoint test/specs/helpers/isAxiosError.spec = test/specs/helpers/isAxiosError.spec.js
Entrypoint test/specs/helpers/isURLSameOrigin.spec = test/specs/helpers/isURLSameOrigin.spec.js
Entrypoint test/specs/helpers/spread.spec = test/specs/helpers/spread.spec.js
Entrypoint test/specs/helpers/parseHeaders.spec = test/specs/helpers/parseHeaders.spec.js
Entrypoint test/specs/helpers/normalizeHeaderName.spec = test/specs/helpers/normalizeHeaderName.spec.js
Entrypoint test/specs/instance.spec = test/specs/instance.spec.js
Entrypoint test/specs/promise.spec = test/specs/promise.spec.js
Entrypoint test/specs/interceptors.spec = test/specs/interceptors.spec.js
Entrypoint test/specs/progress.spec = test/specs/progress.spec.js
Entrypoint test/specs/options.spec = test/specs/options.spec.js
Entrypoint test/specs/utils/extend.spec = test/specs/utils/extend.spec.js
Entrypoint test/specs/utils/forEach.spec = test/specs/utils/forEach.spec.js
Entrypoint test/specs/requests.spec = test/specs/requests.spec.js
Entrypoint test/specs/transform.spec = test/specs/transform.spec.js
Entrypoint test/specs/utils/isX.spec [big] = test/specs/utils/isX.spec.js
Entrypoint test/specs/utils/merge.spec = test/specs/utils/merge.spec.js
Entrypoint test/specs/utils/trim.spec = test/specs/utils/trim.spec.js
Entrypoint test/specs/xsrf.spec = test/specs/xsrf.spec.js
 [8] ./test/specs/adapter.spec.js 347 bytes {0} [built]
[47] ./test/specs/api.spec.js 2.42 KiB {2} [built]
[48] ./test/specs/__helpers.js 3.11 KiB {1} [built]
[50] ./test/specs/cancel.spec.js 2.63 KiB {4} [built]
[51] ./test/specs/basicAuth.spec.js 64 bytes {3} [built]
[52] ./test/specs/cancel/Cancel.spec.js 518 bytes {5} [built]
[53] ./test/specs/cancel/isCancel.spec.js 372 bytes {7} [built]
[54] ./test/specs/core/buildFullPath.spec.js 816 bytes {8} [built]
[55] ./test/specs/cancel/CancelToken.spec.js 2.98 KiB {6} [built]
[56] ./test/specs/core/createError.spec.js 1.31 KiB {9} [built]
[57] ./test/specs/core/enhanceError.spec.js 779 bytes {10} [built]
[58] ./test/specs/core/settle.spec.js 2.19 KiB {12} [built]
[59] ./test/specs/core/mergeConfig.spec.js 12 KiB {11} [built]
[60] ./test/specs/core/transformData.spec.js 681 bytes {13} [built]
[61] ./test/specs/headers.spec.js 2.87 KiB {15} [built]
    + 85 hidden modules

WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/configuration/mode/

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  test/specs/utils/isX.spec.js (450 KiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  test/specs/utils/isX.spec (450 KiB)
      test/specs/utils/isX.spec.js

WARNING in webpack performance recommendations: 
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
ℹ 「wdm」: Compiled with warnings.
15 11 2020 15:29:58.258:INFO [karma-server]: Karma v5.2.3 server started at http://localhost:9876/
15 11 2020 15:29:58.259:INFO [launcher]: Launching browsers SL_Chrome, SL_Firefox, SL_Safari9, SL_Safari10, SL_Safari11, SL_IE11, SL_Edge with concurrency unlimited
15 11 2020 15:29:58.262:INFO [launcher]: Starting browser chrome   on SauceLabs
15 11 2020 15:29:58.293:INFO [launcher]: Starting browser firefox   on SauceLabs
15 11 2020 15:29:58.294:INFO [launcher]: Starting browser safari 9 OS X 10.11 on SauceLabs
15 11 2020 15:29:58.300:INFO [launcher]: Starting browser safari 10.1 macOS 10.12 on SauceLabs
15 11 2020 15:29:58.300:INFO [launcher]: Starting browser safari 11.1 macOS 10.13 on SauceLabs
15 11 2020 15:29:58.300:INFO [launcher]: Starting browser internet explorer 11 Windows 8.1 on SauceLabs
15 11 2020 15:29:58.300:INFO [launcher]: Starting browser microsoftedge  Windows 10 on SauceLabs
15 11 2020 15:30:35.492:INFO [SaucelabsLauncher]: chrome   session at https://saucelabs.com/tests/d54e777c84024bc2b0e64423d70cd90e
15 11 2020 15:30:37.283:INFO [SaucelabsLauncher]: internet explorer 11 Windows 8.1 session at https://saucelabs.com/tests/846a37ad4c7a4940b41d09d8bae6893c
15 11 2020 15:30:37.521:INFO [Chrome 86.0.4240.75 (Windows 7)]: Connected on socket TlLGYF8eZ0RxyYMEAAAA with id 34424418
15 11 2020 15:30:38.360:INFO [IE 11.0 (Windows 8.1)]: Connected on socket 8Ht2KL4x_UUPzmnuAAAB with id 28528711
15 11 2020 15:30:39.146:INFO [SaucelabsLauncher]: safari 11.1 macOS 10.13 session at https://saucelabs.com/tests/9cfb166d67fa492eb122b02fcfff2169
15 11 2020 15:30:39.871:INFO [SaucelabsLauncher]: safari 10.1 macOS 10.12 session at https://saucelabs.com/tests/605fe9aec8fa4ee7999d0d87407616ee
15 11 2020 15:30:40.491:INFO [SaucelabsLauncher]: safari 9 OS X 10.11 session at https://saucelabs.com/tests/3d66d7e5402d4e40bdc35847a1213d11
15 11 2020 15:30:41.486:INFO [SaucelabsLauncher]: microsoftedge  Windows 10 session at https://saucelabs.com/tests/f9871f7a11154a1b869519be605a9770
IE 11.0 (Windows 8.1) ERROR
  'Promise' is undefined
  at node_modules/sinon/pkg/sinon.js:966:5

  ReferenceError: 'Promise' is undefined
     at fakeClass (node_modules/sinon/pkg/sinon.js:966:5)
     at Anonymous function (node_modules/sinon/pkg/sinon.js:1042:1)
     at o (node_modules/sinon/pkg/sinon.js:1:670)
     at Anonymous function (node_modules/sinon/pkg/sinon.js:1:722)
     at Anonymous function (node_modules/sinon/pkg/sinon.js:2331:1)
     at o (node_modules/sinon/pkg/sinon.js:1:670)
     at Anonymous function (node_modules/sinon/pkg/sinon.js:1:722)
     at Anonymous function (node_modules/sinon/pkg/sinon.js:588:1)
     at o (node_modules/sinon/pkg/sinon.js:1:670)
     at Anonymous function (node_modules/sinon/pkg/sinon.js:1:722)
IE 11.0 (Windows 8.1): Executed 0 of 0 ERROR (4.584 secs / 0 secs)
15 11 2020 15:30:42.944:ERROR [reporter.sauce]: ✖ Tests errored
15 11 2020 15:30:42.947:INFO [reporter.sauce]: Check out job at https://app.saucelabs.com/tests/846a37ad4c7a4940b41d09d8bae6893c
15 11 2020 15:30:43.034:INFO [Safari 11.1.2 (Mac OS 10.13.6)]: Connected on socket HepHWWCf4_zB5tuEAAAC with id 80905869
15 11 2020 15:30:43.227:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer 11 Windows 8.1' has already been stored.
15 11 2020 15:30:43.600:INFO [Safari 10.1.2 (Mac OS 10.12.6)]: Connected on socket zonN9xWNh3tck9RDAAAD with id 7875048
15 11 2020 15:30:43.602:INFO [Safari 9.1.2 (Mac OS 10.11.6)]: Connected on socket BizdR30pf0Fi-Z5aAAAE with id 10285910
15 11 2020 15:30:43.862:INFO [Edge 86.0.622.43 (Windows 10)]: Connected on socket pJIerTEFMID0IZRqAAAF with id 9090013
15 11 2020 15:30:44.575:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer 11 Windows 8.1' has already been stored.
15 11 2020 15:30:44.778:INFO [SaucelabsLauncher]: firefox   session at https://saucelabs.com/tests/462faecf64bc4d1eae360b1db4651882
................................................................................
......................................................................15 11 2020 15:30:46.721:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'internet explorer 11 Windows 8.1' and temporary assets are deleted.
...
Chrome 86.0.4240.75 (Windows 7) adapter should support custom adapter FAILED
        Unhandled promise rejection: TypeError: Cannot read property 'then' of undefined
        TypeError: Cannot read property 'then' of undefined
            at e.exports (webpack:///lib/core/dispatchRequest.js:52:18 <- test/specs/adapter.spec.js:1:9141)
..............................................15 11 2020 15:30:53.416:INFO [Firefox 82.0 (Windows 7)]: Connected on socket KPam1aZnE0AKWroEAAAG with id 98687908
..................................
................
Chrome 86.0.4240.75 (Windows 7): Executed 250 of 250 (1 FAILED) (10.519 secs / 9.611 secs)
15 11 2020 15:30:54.833:INFO [reporter.sauce]: Check out job at https://app.saucelabs.com/tests/d54e777c84024bc2b0e64423d70cd90e
15 11 2020 15:30:55.112:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'chrome  ' has already been stored.
15 11 2020 15:30:56.358:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'chrome  ' has already been stored.
15 11 2020 15:30:58.647:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'chrome  ' and temporary assets are deleted.
................................................................................
................................................................................
................................................................................
..........
Safari 11.1.2 (Mac OS 10.13.6) ERROR
  An error was thrown in afterAll
  Unhandled promise rejection: TypeError: undefined is not an object (evaluating 'n.protocol') in test/specs/__helpers.js (line 1)
  webpack:///lib/helpers/isURLSameOrigin.js:57:17 <- test/specs/__helpers.js:1:15630
  webpack:///lib/adapters/xhr.js:108:50 <- test/specs/__helpers.js:1:12301
  <Jasmine>
  exports@webpack:///lib/adapters/xhr.js:13:14 <- test/specs/__helpers.js:1:11241
  exports@webpack:///lib/core/dispatchRequest.js:50:44 <- test/specs/__helpers.js:1:8927
  <Jasmine>
  Failed: Unhandled rejection.
  <Jasmine>
  webpack:///test/specs/cancel.spec.js:75:16 <- test/specs/cancel.spec.js:1:2358
...........................................
Safari 11.1.2 (Mac OS 10.13.6): Executed 193 of 250 ERROR (2.645 secs / 1.83 secs)
15 11 2020 15:31:03.562:ERROR [reporter.sauce]: ✖ Tests errored
15 11 2020 15:31:03.563:INFO [reporter.sauce]: Check out job at https://app.saucelabs.com/tests/9cfb166d67fa492eb122b02fcfff2169
................................................................................
....................15 11 2020 15:31:04.267:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 11.1 macOS 10.13' has already been stored.
..................................................
Edge 86.0.622.43 (Windows 10) ERROR
  An error was thrown in afterAll
  Error: Failed: Unhandled rejection.
      at <Jasmine>
      at webpack:///test/specs/cancel.spec.js:75:16 <- test/specs/cancel.spec.js:1:2354
................
Edge 86.0.622.43 (Windows 10): Executed 116 of 250 ERROR (1.297 secs / 0.939 secs)
15 11 2020 15:31:04.563:ERROR [reporter.sauce]: ✖ Tests errored
15 11 2020 15:31:04.564:INFO [reporter.sauce]: Check out job at https://app.saucelabs.com/tests/f9871f7a11154a1b869519be605a9770
................................................................................
......................................................................15 11 2020 15:31:04.938:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'microsoftedge  Windows 10' has already been stored.
..........
................................................................................
............................................................15 11 2020 15:31:05.335:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 11.1 macOS 10.13' has already been stored.
....................
..............................
Safari 10.1.2 (Mac OS 10.12.6): Executed 250 of 250 SUCCESS (3.458 secs / 3.012 secs)
15 11 2020 15:31:05.608:INFO [reporter.sauce]: Check out job at https://app.saucelabs.com/tests/605fe9aec8fa4ee7999d0d87407616ee
..................................................15 11 2020 15:31:05.904:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'microsoftedge  Windows 10' has already been stored.
15 11 2020 15:31:06.012:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 10.1 macOS 10.12' has already been stored.
..............................
....................
Safari 9.1.2 (Mac OS 10.11.6): Executed 250 of 250 SUCCESS (3.091 secs / 2.832 secs)
15 11 2020 15:31:06.187:INFO [reporter.sauce]: Check out job at https://app.saucelabs.com/tests/3d66d7e5402d4e40bdc35847a1213d11
..................................................15 11 2020 15:31:06.643:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 9 OS X 10.11' has already been stored.
15 11 2020 15:31:06.918:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'microsoftedge  Windows 10' has already been stored.

Firefox 82.0 (Windows 7) ERROR
  An error was thrown in afterAll
  Unhandled promise rejection: TypeError: n is undefined in test/specs/__helpers.js (line 1)
  t.exports</<@webpack:///lib/helpers/isURLSameOrigin.js:57:9 <- test/specs/__helpers.js:1:15622
  t.exports/<@webpack:///lib/adapters/xhr.js:108:50 <- test/specs/__helpers.js:1:12300
  t.exports@webpack:///lib/adapters/xhr.js:13:10 <- test/specs/__helpers.js:1:11230
  t.exports@webpack:///lib/core/dispatchRequest.js:50:44 <- test/specs/__helpers.js:1:8927
...........................................
Firefox 82.0 (Windows 7): Executed 193 of 250 ERROR (2.61 secs / 2.333 secs)
15 11 2020 15:31:06.944:ERROR [reporter.sauce]: ✖ Tests errored
15 11 2020 15:31:06.945:INFO [reporter.sauce]: Check out job at https://app.saucelabs.com/tests/462faecf64bc4d1eae360b1db4651882
15 11 2020 15:31:06.965:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 10.1 macOS 10.12' has already been stored.
15 11 2020 15:31:07.287:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'firefox  ' has already been stored.
15 11 2020 15:31:07.392:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'safari 11.1 macOS 10.13' and temporary assets are deleted.
15 11 2020 15:31:07.596:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 9 OS X 10.11' has already been stored.
15 11 2020 15:31:07.990:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 10.1 macOS 10.12' has already been stored.
15 11 2020 15:31:08.423:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'firefox  ' has already been stored.
15 11 2020 15:31:08.640:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'safari 9 OS X 10.11' has already been stored.
15 11 2020 15:31:08.740:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'microsoftedge  Windows 10' and temporary assets are deleted.
15 11 2020 15:31:09.794:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'safari 10.1 macOS 10.12' and temporary assets are deleted.
15 11 2020 15:31:10.835:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'safari 9 OS X 10.11' and temporary assets are deleted.
15 11 2020 15:31:10.836:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'firefox  ' and temporary assets are deleted.
Warning: Task "karma:single" failed. Used --force, continuing.

Running "ts:test" (ts) task
Compiling...
Cleared fast compile cache for target: test
Using tsc v4.0.5

TypeScript compilation complete: 3.16s for 1 TypeScript files.

Done, but with warnings.
simllll commented 3 years ago

Strange, what I did besides the package.json was removing uglify from webpack config and and rmeove the comment /global toString:true/ from utils.js. I guess you did probabaly the same, what system are you running on? Mine: node v15.2.0 Ubuntu 20.04.1 LTS Google Chrome 85.0.4183.121 Mozilla Firefox 82.0.3

Maybe it's related with node 15? I will check now. Update: same issue ( TypeError: Cannot read property 'results' of undefined at SaucelabsReporter.onSpecComplete (/home/simon/Dev/other/axios/node_modules/karma-sauce-launcher/dist/reporter/reporter.js:31:35) with node 14.15.0

as a side note, not sure if relevant, but I get a warning that safari is not found (well I'm on linux ;)): 15 11 2020 17:13:05.220:INFO [launcher]: Launching browsers Firefox, Chrome, Safari, Opera with concurrency unlimited 15 11 2020 17:13:05.224:INFO [launcher]: Starting browser Firefox 15 11 2020 17:13:05.252:INFO [launcher]: Starting browser Chrome 15 11 2020 17:13:05.268:INFO [launcher]: Starting browser Safari 15 11 2020 17:13:05.269:INFO [launcher]: Starting browser Opera 15 11 2020 17:13:05.335:ERROR [launcher]: No binary for Safari browser on your platform. Please, set "SAFARI_BIN" env variable.

If i compare the browsers to your list, the indeed differ a lot. Could this be some hint?

simllll commented 3 years ago

Anything I can do to help tracking this down? I believe it has something todo with my environment...

wswebcreation commented 3 years ago

Hi @simllll

Sorry for my late response, busy week.

I've been running this from my mac, here are some logs

Node.js 14

node -v   
v14.15.1

yarn run-example      
yarn run v1.22.10
$ yarn build && yarn copy-dist-to-modules && yarn run-example-karma
$ tsc -p src
$ rm -rf node_modules/karma-sauce-launcher && mv dist/ node_modules/karma-sauce-launcher
$ yarn karma start examples/karma.conf-ci.js
$ /Users/wimselles/Sauce/Git/karma-sauce-launcher/node_modules/.bin/karma start examples/karma.conf-ci.js
22 11 2020 08:24:17.532:INFO [karma-server]: Karma v5.2.3 server started at http://localhost:9876/
22 11 2020 08:24:17.537:INFO [launcher]: Launching browsers sl_chrome, sl_chromeW3C, sl_firefox, sl_ie_11 with concurrency unlimited
22 11 2020 08:24:17.539:INFO [launcher]: Starting browser chrome latest  on SauceLabs
22 11 2020 08:24:17.672:INFO [launcher]: Starting browser chrome latest  on SauceLabs
22 11 2020 08:24:17.672:INFO [launcher]: Starting browser firefox latest  on SauceLabs
22 11 2020 08:24:17.672:INFO [launcher]: Starting browser internet explorer latest  on SauceLabs
22 11 2020 08:24:54.447:INFO [SaucelabsLauncher]: chrome latest  session at https://saucelabs.com/tests/a1958568f590493c822c0fe38ab0094d
22 11 2020 08:24:56.500:INFO [Chrome 87.0.4280.66 (Windows 7)]: Connected on socket ij5MfC6FH5_2DHWtAAAA with id 73730399
Chrome 87.0.4280.66 (Windows 7) LOG: 'Hello from my test'

Chrome 87.0.4280.66 (Windows 7): Executed 3 of 3 SUCCESS (0.001 secs / 0.005 secs)
22 11 2020 08:24:58.595:INFO [reporter.sauce]: Check out job at https://app.saucelabs.com/tests/a1958568f590493c822c0fe38ab0094d
22 11 2020 08:24:58.867:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'chrome latest ' has already been stored.
22 11 2020 08:25:00.311:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'chrome latest ' has already been stored.
22 11 2020 08:25:02.433:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'chrome latest ' and temporary assets are deleted.
22 11 2020 08:25:02.929:INFO [SaucelabsLauncher]: chrome latest  session at https://saucelabs.com/tests/adbf9698b0524e4b8a45424cf9363891
22 11 2020 08:25:04.103:INFO [SaucelabsLauncher]: internet explorer latest  session at https://saucelabs.com/tests/29bc98c7b5ab47ad94bb905f7c7512b5
22 11 2020 08:25:04.906:INFO [Chrome 87.0.4280.66 (Windows 10)]: Connected on socket tmz1eSE08dE0c3eZAAAB with id 57116941
LOG: 'Hello from my test'
LOG: 'Hello from my test'
Chrome 87.0.4280.66 (Windows 7): Executed 3 of 3 SUCCESS (0.001 secs / 0.005 secs)
Chrome 87.0.4280.66 (Windows 7): Executed 3 of 3 SUCCESS (0.001 secs / 0.005 secs)
Chrome 87.0.4280.66 (Windows 7): Executed 3 of 3 SUCCESS (0.001 secs / 0.005 secs)
IE 11.0 (Windows 10): Executed 3 of 3 SUCCESS (0.001 secs / 0.006 secs)
Chrome 87.0.4280.66 (Windows 10): Executed 3 of 3 SUCCESS (0 secs / 0.004 secs)
22 11 2020 08:25:06.980:INFO [reporter.sauce]: Check out job at https://app.saucelabs.com/tests/adbf9698b0524e4b8a45424cf9363891
22 11 2020 08:25:07.039:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
22 11 2020 08:25:07.515:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'chrome latest ' has already been stored.
Firefox 83.0 (Windows 7) LOG: 'Hello from my test'
Chrome 87.0.4280.66 (Windows 7): Executed 3 of 3 SUCCESS (0.001 secs / 0.005 secs)
Chrome 87.0.4280.66 (Windows 7): Executed 3 of 3 SUCCESS (0.001 secs / 0.005 secs)
IE 11.0 (Windows 10): Executed 3 of 3 SUCCESS (0.001 secs / 0.006 secs)
Chrome 87.0.4280.66 (Windows 10): Executed 3 of 3 SUCCESS (0 secs / 0.004 secs)
Firefox 83.0 (Windows 7): Executed 3 of 3 SUCCESS (0 secs / 0.007 secs)
22 11 2020 08:25:10.744:INFO [reporter.sauce]: Check out job at https://app.saucelabs.com/tests/9543efd5b7c0417eb311ff21cb06198d
TOTAL: 12 SUCCESS
22 11 2020 08:25:10.794:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'chrome latest ' and temporary assets are deleted.
22 11 2020 08:25:11.168:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'firefox latest ' has already been stored.
22 11 2020 08:25:12.128:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'firefox latest ' has already been stored.
22 11 2020 08:25:14.306:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'firefox latest ' and temporary assets are deleted.
✨  Done in 64.39s.

Node.js 15:

node -v       
v15.2.1

yarn run-example
yarn run v1.22.10
$ yarn build && yarn copy-dist-to-modules && yarn run-example-karma
$ tsc -p src
$ rm -rf node_modules/karma-sauce-launcher && mv dist/ node_modules/karma-sauce-launcher
$ yarn karma start examples/karma.conf-ci.js
$ /Users/wimselles/Sauce/Git/karma-sauce-launcher/node_modules/.bin/karma start examples/karma.conf-ci.js
22 11 2020 08:27:16.047:INFO [karma-server]: Karma v5.2.3 server started at http://localhost:9876/
22 11 2020 08:27:16.050:INFO [launcher]: Launching browsers sl_chrome, sl_chromeW3C, sl_firefox, sl_ie_11 with concurrency unlimited
22 11 2020 08:27:16.052:INFO [launcher]: Starting browser chrome latest  on SauceLabs
22 11 2020 08:27:16.055:INFO [launcher]: Starting browser chrome latest  on SauceLabs
22 11 2020 08:27:16.055:INFO [launcher]: Starting browser firefox latest  on SauceLabs
22 11 2020 08:27:16.082:INFO [launcher]: Starting browser internet explorer latest  on SauceLabs
22 11 2020 08:27:43.778:INFO [SaucelabsLauncher]: chrome latest  session at https://saucelabs.com/tests/88a2d5d501dd4b638fc20cf0caa54254
22 11 2020 08:27:46.493:INFO [SaucelabsLauncher]: chrome latest  session at https://saucelabs.com/tests/3dd333ddcf5c40a59afbe1327f64d892
22 11 2020 08:27:46.650:INFO [Chrome 87.0.4280.66 (Windows 7)]: Connected on socket nzsVCQWGoNHWLd_iAAAA with id 25983995
22 11 2020 08:27:47.944:INFO [Chrome 87.0.4280.66 (Windows 10)]: Connected on socket tEgc9LrQ9jHjCA6RAAAB with id 46642807
Chrome 87.0.4280.66 (Windows 7) LOG: 'Hello from my test'

22 11 2020 08:27:48.154:INFO [SaucelabsLauncher]: firefox latest  session at https://saucelabs.com/tests/d9629f332ce84031b60bf61b18955bad
Chrome 87.0.4280.66 (Windows 7): Executed 3 of 3 SUCCESS (0.002 secs / 0.004 secs)
22 11 2020 08:27:48.251:INFO [reporter.sauce]: Check out job at https://app.saucelabs.com/tests/88a2d5d501dd4b638fc20cf0caa54254
LOG: 'Hello from my test'
Chrome 87.0.4280.66 (Windows 7): Executed 3 of 3 SUCCESS (0.002 secs / 0.004 secs)
Chrome 87.0.4280.66 (Windows 10): Executed 3 of 3 SUCCESS (0 secs / 0.003 secs)
22 11 2020 08:27:49.547:INFO [reporter.sauce]: Check out job at https://app.saucelabs.com/tests/3dd333ddcf5c40a59afbe1327f64d892
22 11 2020 08:27:49.573:INFO [Firefox 83.0 (Windows 7)]: Connected on socket YHWc4fJ6-V9DwVbGAAAC with id 74150330
22 11 2020 08:27:49.802:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'chrome latest ' has already been stored.
22 11 2020 08:27:50.980:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'chrome latest ' has already been stored.
22 11 2020 08:27:51.963:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'chrome latest ' has already been stored.
Firefox 83.0 (Windows 7) LOG: 'Hello from my test'
Chrome 87.0.4280.66 (Windows 7): Executed 3 of 3 SUCCESS (0.002 secs / 0.004 secs)
Chrome 87.0.4280.66 (Windows 10): Executed 3 of 3 SUCCESS (0 secs / 0.003 secs)
Firefox 83.0 (Windows 7): Executed 3 of 3 SUCCESS (0.001 secs / 0.008 secs)
22 11 2020 08:27:52.689:INFO [reporter.sauce]: Check out job at https://app.saucelabs.com/tests/d9629f332ce84031b60bf61b18955bad
22 11 2020 08:27:52.961:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'chrome latest ' has already been stored.
22 11 2020 08:27:53.078:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'firefox latest ' has already been stored.
IE 11.0 (Windows 10) LOG: 'Hello from my test'
Chrome 87.0.4280.66 (Windows 7): Executed 3 of 3 SUCCESS (0.002 secs / 0.004 secs)
Chrome 87.0.4280.66 (Windows 10): Executed 3 of 3 SUCCESS (0 secs / 0.003 secs)
Firefox 83.0 (Windows 7): Executed 3 of 3 SUCCESS (0.001 secs / 0.008 secs)
IE 11.0 (Windows 10): Executed 3 of 3 SUCCESS (0.001 secs / 0.006 secs)
22 11 2020 08:27:54.999:INFO [reporter.sauce]: Check out job at https://app.saucelabs.com/tests/62ca6f2d1cad4aa183fc716b0c1c4f93
TOTAL: 12 SUCCESS
22 11 2020 08:27:55.064:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'firefox latest ' has already been stored.
22 11 2020 08:27:55.344:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
22 11 2020 08:27:56.426:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
22 11 2020 08:27:56.916:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'firefox latest ' and temporary assets are deleted.
22 11 2020 08:27:57.475:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
22 11 2020 08:27:59.222:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'internet explorer latest ' and temporary assets are deleted.
✨  Done in 49.15s.

Can you share a reproducible example?

wswebcreation commented 3 years ago

@jarrodek

A fix has been released, can you please check if it works for you?

anglinb commented 3 years ago

@wswebcreation I bumped the karma-sauce-launcher version to 4.3.6, following your last comment. The tests are still failing but with a different error

Example log output from one of the failures:

2021-05-27T05:54:16.769Z ERROR webdriver: Request failed with status 500 due to Error: Sauce could not start your job. For more information on what happened, please visit https://app.saucelabs.com/tests/90f27026f00a4ae496f5ff7a435e8f28
2021-05-27T05:54:16.771Z ERROR webdriver: Error: Sauce could not start your job. For more information on what happened, please visit https://app.saucelabs.com/tests/90f27026f00a4ae496f5ff7a435e8f28
    at Object.getErrorFromResponseBody (/home/travis/build/[secure]/[secure]/node_modules/webdriver/build/utils.js:94:12)
    at WebDriverRequest._request (/home/travis/build/[secure]/[secure]/node_modules/webdriver/build/request.js:134:31)
    at process._tickCallback (internal/process/next_tick.js:68:7)
27 05 2021 05:54:16.771:ERROR [SaucelabsLauncher]: Error: Failed to create session.
Sauce could not start your job. For more information on what happened, please visit https://app.saucelabs.com/tests/90f27026f00a4ae496f5ff7a435e8f28
    at Object.startWebDriverSession (/home/travis/build/[secure]/[secure]/node_modules/webdriver/build/utils.js:34:15)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Let me know if you can find any clues, thanks!

wswebcreation commented 3 years ago

Hi @anglinb

Strange, it looks like the Sauce Connect Tunnel is killed before your tests are finished, can you enable the Sauce Connect logs are shown here and share them?

anglinb commented 3 years ago

I don't have write access to the repo so would have to open another PR but the cycle time between trying a change, opening a PR, merging to master is pretty gnarly 😅 I thought I could fix it by just bumping the version but that didn't work out. Maybe the maintainers might be up for it but ya unfortunately PRs don't run with Sauce creds until merged.

It was literally just bugging me all the build indicators were red haha

Screen Shot 2021-05-28 at 10 37 18 PM

https://github.com/axios/axios#browser-support