Skip to content

Error is thrown when trying to run the connector #230

@jarrodek

Description

@jarrodek

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions