question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Saucelabs not getting registered

See original GitHub issue

Having trouble getting this running in my personal project. I’ve tried the example repo, but it seems to have the same issue. The the errors below are from the sample project. Nothing has been modified in any file.

I’ve tried with the connection started via binaries and sauceConnect set to false. I’ve tried unencrypted username and accessKey and encrypted.

Karma version: 0.12.37 Node Version: 0.12.2 OS: Mac OS X 10.10.3

Same thing seems to happen on node v0.10.x, but it adds an error message referencing jasmine not being present.

[AAV:.../github/karma-sauce-example]$ karma start karma.conf-ci.js                                                                                 (master)
WARN [reporter]: Can not load "saucelabs", it is not registered!
  Perhaps you are missing some plugin?
INFO [karma]: Karma v0.12.37 server started at http://localhost:9876/
WARN [launcher]: Can not load "SL_Chrome"!
  Error: No provider for "launcher:SauceLabs". Can not use provider from the parent!
    at /Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:84:17
    at Array.forEach (native)
    at createChild (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:82:27)
    at module.(anonymous function) (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/lib/config.js:180:25)
    at Array.invoke (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:75:15)
    at get (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:48:43)
    at /Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/lib/launcher.js:57:72
    at Array.forEach (native)
    at launch (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/lib/launcher.js:40:11)
    at invoke (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:75:15)
WARN [launcher]: Can not load "SL_InternetExplorer"!
  Error: No provider for "launcher:SauceLabs". Can not use provider from the parent!
    at /Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:84:17
    at Array.forEach (native)
    at createChild (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:82:27)
    at module.(anonymous function) (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/lib/config.js:180:25)
    at Array.invoke (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:75:15)
    at get (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:48:43)
    at /Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/lib/launcher.js:57:72
    at Array.forEach (native)
    at launch (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/lib/launcher.js:40:11)
    at invoke (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:75:15)
WARN [launcher]: Can not load "SL_FireFox"!
  Error: No provider for "launcher:SauceLabs". Can not use provider from the parent!
    at /Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:84:17
    at Array.forEach (native)
    at createChild (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:82:27)
    at module.(anonymous function) (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/lib/config.js:180:25)
    at Array.invoke (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:75:15)
    at get (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:48:43)
    at /Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/lib/launcher.js:57:72
    at Array.forEach (native)
    at launch (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/lib/launcher.js:40:11)
    at invoke (/Users/AAV/.nvm/versions/node/v0.12.2/lib/node_modules/karma/node_modules/di/lib/injector.js:75:15)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:18

github_iconTop GitHub Comments

26reactions
coding365dayscommented, Nov 16, 2018

I wanted to involve EventEmitter in my angular 6 program and by mistakenly i imported it from protractor instead of @angular/core. So please check if you have done any such mistake.

6reactions
sbichenkocommented, Jul 17, 2015

I fixed this exact error by adding 'karma-sauce-launcher' to plugins in karma config file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Sauce Labs Documentation
Below are some tips to help troubleshoot Sauce Connect Proxy.
Read more >
Email Verification Problems
If you have a brand new Sauce Labs account and are waiting on email verification try these things first: Check your spam/junk folder......
Read more >
Common Error Messages
Below are some Sauce Labs automated testing common error messages and how to fix them.
Read more >
"Your connection is not private" error while testing web ...
When using a Sauce Connect tunnel and navigating to a site using Chrome, you might see an error saying the connection is not...
Read more >
Troubleshooting and what to do before creating a Support ...
... team make sure we can get you up and running as soon as possible. ... test result links (e.g. https://app.saucelabs.com/tests/12345) to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found