Unable to parse remote response: Misconfigured -- Sauce Labs Authentication Error.

Comments

2 comments

  • Avatar
    Poonam Arora

    Hello Rajendra,

    I found the account 'Harshavardhan_Reddy' in our EU Data Center. The URL you are using "https://" + USERNAME + ":" + ACCESS_KEY + "@ondemand.saucelabs.com:443/wd/hub"  is for our US Data Center. Please use the following URL and try again.

    https://ondemand.eu-central-1.saucelabs.com/wd/hub

    Here is a link with the connection information for our US and EU Data Centers:

    https://wiki.saucelabs.com/display/DOCS/Connection+and+Status+Information+for+the+Sauce+Labs+Data+Centers

    Regards,

    Poonam

    0
    Comment actions Permalink
  • Avatar
    eric harms

    Hi,

    I am having a similar issue with one of the sample java test projects.  My URL in all the tests of the project is https://ondemand.us-east-1.saucelabs.com/wd/hub, and all the other tests complete successfully.

    Stacktrace below, please let me know if I might have something configured incorrectly.

    Thanks!

    -------------------------------------------------------
    T E S T S
    -------------------------------------------------------
    Running TestSuite
    Configuring TestNG with: org.apache.maven.surefire.testng.conf.TestNG652Configurator@6bc168e5
    Tests run: 10, Failures: 9, Errors: 0, Skipped: 1, Time elapsed: 1.885 sec <<< FAILURE!
    headlessTest(CrossBrowserTest) Time elapsed: 1.085 sec <<< FAILURE!
    org.openqa.selenium.WebDriverException: Unable to parse remote response: Misconfigured -- Sauce Labs Authentication Error.
    You used username 'lemonaidtesting' and access key 'XXXXXXXX-XXXX-XXXX-XXXX-XXXX047505c3' to authenticate, which are not valid Sauce Labs credentials.
    The following desired capabilities were received:
    {'browserName': 'chrome',
    'browserVersion': 'latest',
    'goog:chromeOptions': {'args': [],
    'extensions': [],
    'w3c': True},
    'platformName': 'linux',
    'sauce:options': {'accessKey': 'XXXXXXXX-XXXX-XXXX-XXXX-XXXX047505c3',
    'build': 'Sample Headless Tests',
    'name': 'headless-parallel-cross-browser-test-java',
    'seleniumVersion': '3.141.59',
    'username': 'lemonaidtesting'}}
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:115)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
    at CrossBrowserTest.createSauceDriver(CrossBrowserTest.java:46)
    at CrossBrowserTest.createDriver(CrossBrowserTest.java:83)
    at CrossBrowserTest.headlessTest(CrossBrowserTest.java:88)
    Caused by: org.openqa.selenium.json.JsonException: Unable to determine type from: M. Last 1 characters read: M
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
    System info: host: 'Erics-Latest-MacBook-Pro.local', ip: 'fe80:0:0:0:1c3b:5164:6c52:485%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.4', java.version: '1.8.0_131'
    Driver info: driver.version: RemoteWebDriver
    at org.openqa.selenium.json.JsonInput.peek(JsonInput.java:122)
    at org.openqa.selenium.json.JsonTypeCoercer.lambda$null$6(JsonTypeCoercer.java:140)
    at org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:126)
    at org.openqa.selenium.json.Json.toType(Json.java:69)
    at org.openqa.selenium.json.Json.toType(Json.java:55)
    at org.openqa.selenium.json.Json.toType(Json.java:50)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:112)
    ... 24 more

    headlessTest(CrossBrowserTest) Time elapsed: 1.086 sec <<< FAILURE!
    org.openqa.selenium.WebDriverException: Unable to parse remote response: Misconfigured -- Sauce Labs Authentication Error.
    You used username 'lemonaidtesting' and access key 'XXXXXXXX-XXXX-XXXX-XXXX-XXXX047505c3' to authenticate, which are not valid Sauce Labs credentials.
    The following desired capabilities were received:
    {'browserName': 'chrome',
    'browserVersion': 'latest-1',
    'goog:chromeOptions': {'args': [],
    'extensions': [],
    'w3c': True},
    'platformName': 'linux',
    'sauce:options': {'accessKey': 'XXXXXXXX-XXXX-XXXX-XXXX-XXXX047505c3',
    'build': 'Sample Headless Tests',
    'name': 'headless-parallel-cross-browser-test-java',
    'seleniumVersion': '3.141.59',
    'username': 'lemonaidtesting'}}
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:115)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
    at CrossBrowserTest.createSauceDriver(CrossBrowserTest.java:46)
    at CrossBrowserTest.createDriver(CrossBrowserTest.java:83)
    at CrossBrowserTest.headlessTest(CrossBrowserTest.java:88)
    Caused by: org.openqa.selenium.json.JsonException: Unable to determine type from: M. Last 1 characters read: M
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
    System info: host: 'Erics-Latest-MacBook-Pro.local', ip: 'fe80:0:0:0:1c3b:5164:6c52:485%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.4', java.version: '1.8.0_131'
    Driver info: driver.version: RemoteWebDriver
    at org.openqa.selenium.json.JsonInput.peek(JsonInput.java:122)
    at org.openqa.selenium.json.JsonTypeCoercer.lambda$null$6(JsonTypeCoercer.java:140)
    at org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:126)
    at org.openqa.selenium.json.Json.toType(Json.java:69)
    at org.openqa.selenium.json.Json.toType(Json.java:55)
    at org.openqa.selenium.json.Json.toType(Json.java:50)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:112)
    ... 24 more

    headlessTest(CrossBrowserTest) Time elapsed: 1.086 sec <<< FAILURE!
    org.openqa.selenium.WebDriverException: Unable to parse remote response: Misconfigured -- Sauce Labs Authentication Error.
    You used username 'lemonaidtesting' and access key 'XXXXXXXX-XXXX-XXXX-XXXX-XXXX047505c3' to authenticate, which are not valid Sauce Labs credentials.
    The following desired capabilities were received:
    {'acceptInsecureCerts': True,
    'browserName': 'firefox',
    'browserVersion': 'latest-1',
    'moz:firefoxOptions': {'args': [],
    'prefs': {}},
    'platformName': 'linux',
    'sauce:options': {'accessKey': 'XXXXXXXX-XXXX-XXXX-XXXX-XXXX047505c3',
    'build': 'Sample Headless Tests',
    'name': 'headless-parallel-cross-browser-test-java',
    'seleniumVersion': '3.141.59',
    'username': 'lemonaidtesting'}}
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:115)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
    at CrossBrowserTest.createSauceDriver(CrossBrowserTest.java:46)
    at CrossBrowserTest.createDriver(CrossBrowserTest.java:83)
    at CrossBrowserTest.headlessTest(CrossBrowserTest.java:88)
    Caused by: org.openqa.selenium.json.JsonException: Unable to determine type from: M. Last 1 characters read: M
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
    System info: host: 'Erics-Latest-MacBook-Pro.local', ip: 'fe80:0:0:0:1c3b:5164:6c52:485%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.4', java.version: '1.8.0_131'
    Driver info: driver.version: RemoteWebDriver
    at org.openqa.selenium.json.JsonInput.peek(JsonInput.java:122)
    at org.openqa.selenium.json.JsonTypeCoercer.lambda$null$6(JsonTypeCoercer.java:140)
    at org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:126)
    at org.openqa.selenium.json.Json.toType(Json.java:69)
    at org.openqa.selenium.json.Json.toType(Json.java:55)
    at org.openqa.selenium.json.Json.toType(Json.java:50)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:112)
    ... 24 more

    cleanUpAfterTestMethod(CrossBrowserTest) Time elapsed: 1.086 sec <<< FAILURE!
    java.lang.NullPointerException
    at CrossBrowserTest.cleanUpAfterTestMethod(CrossBrowserTest.java:103)

    cleanUpAfterTestMethod(CrossBrowserTest) Time elapsed: 1.086 sec <<< FAILURE!
    java.lang.NullPointerException
    at CrossBrowserTest.cleanUpAfterTestMethod(CrossBrowserTest.java:103)

    cleanUpAfterTestMethod(CrossBrowserTest) Time elapsed: 1.086 sec <<< FAILURE!
    java.lang.NullPointerException
    at CrossBrowserTest.cleanUpAfterTestMethod(CrossBrowserTest.java:103)

    headlessTest(CrossBrowserTest) Time elapsed: 1.117 sec <<< FAILURE!
    org.openqa.selenium.WebDriverException: Unable to parse remote response: Misconfigured -- Sauce Labs Authentication Error.
    You used username 'lemonaidtesting' and access key 'XXXXXXXX-XXXX-XXXX-XXXX-XXXX047505c3' to authenticate, which are not valid Sauce Labs credentials.
    The following desired capabilities were received:
    {'acceptInsecureCerts': True,
    'browserName': 'firefox',
    'browserVersion': 'latest',
    'moz:firefoxOptions': {'args': [],
    'prefs': {}},
    'platformName': 'linux',
    'sauce:options': {'accessKey': 'XXXXXXXX-XXXX-XXXX-XXXX-XXXX047505c3',
    'build': 'Sample Headless Tests',
    'name': 'headless-parallel-cross-browser-test-java',
    'seleniumVersion': '3.141.59',
    'username': 'lemonaidtesting'}}
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:115)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
    at CrossBrowserTest.createSauceDriver(CrossBrowserTest.java:46)
    at CrossBrowserTest.createDriver(CrossBrowserTest.java:83)
    at CrossBrowserTest.headlessTest(CrossBrowserTest.java:88)
    Caused by: org.openqa.selenium.json.JsonException: Unable to determine type from: M. Last 1 characters read: M
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
    System info: host: 'Erics-Latest-MacBook-Pro.local', ip: 'fe80:0:0:0:1c3b:5164:6c52:485%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.4', java.version: '1.8.0_131'
    Driver info: driver.version: RemoteWebDriver
    at org.openqa.selenium.json.JsonInput.peek(JsonInput.java:122)
    at org.openqa.selenium.json.JsonTypeCoercer.lambda$null$6(JsonTypeCoercer.java:140)
    at org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:126)
    at org.openqa.selenium.json.Json.toType(Json.java:69)
    at org.openqa.selenium.json.Json.toType(Json.java:55)
    at org.openqa.selenium.json.Json.toType(Json.java:50)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:112)
    ... 24 more

    main(SampleHeadlessSauceTest) Time elapsed: 0.504 sec <<< FAILURE!
    org.openqa.selenium.WebDriverException: Unable to parse remote response: Misconfigured -- Sauce Labs Authentication Error.
    You used username 'lemonaidtesting' and access key 'XXXXXXXX-XXXX-XXXX-XXXX-XXXX047505c3' to authenticate, which are not valid Sauce Labs credentials.
    The following desired capabilities were received:
    {'browserName': 'chrome',
    'browserVersion': 'latest',
    'goog:chromeOptions': {'args': [],
    'extensions': [],
    'w3c': True},
    'platformName': 'linux',
    'sauce:options': {'accessKey': 'XXXXXXXX-XXXX-XXXX-XXXX-XXXX047505c3',
    'build': 'Sample Headless Tests',
    'name': 'headless-chrome-test-java',
    'seleniumVersion': '3.141.59',
    'username': 'lemonaidtesting'}}
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:115)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)
    at SampleHeadlessSauceTest.main(SampleHeadlessSauceTest.java:40)
    Caused by: org.openqa.selenium.json.JsonException: Unable to determine type from: M. Last 1 characters read: M
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
    System info: host: 'Erics-Latest-MacBook-Pro.local', ip: 'fe80:0:0:0:1c3b:5164:6c52:485%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.4', java.version: '1.8.0_131'
    Driver info: driver.version: RemoteWebDriver
    at org.openqa.selenium.json.JsonInput.peek(JsonInput.java:122)
    at org.openqa.selenium.json.JsonTypeCoercer.lambda$null$6(JsonTypeCoercer.java:140)
    at org.openqa.selenium.json.JsonTypeCoercer.coerce(JsonTypeCoercer.java:126)
    at org.openqa.selenium.json.Json.toType(Json.java:69)
    at org.openqa.selenium.json.Json.toType(Json.java:55)
    at org.openqa.selenium.json.Json.toType(Json.java:50)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:112)
    ... 42 more

    cleanUpAfterTestMethod(SampleHeadlessSauceTest) Time elapsed: 0.505 sec <<< FAILURE!
    java.lang.NullPointerException
    at SampleHeadlessSauceTest.cleanUpAfterTestMethod(SampleHeadlessSauceTest.java:51)


    Results :

    Failed tests: headlessTest(CrossBrowserTest): Unable to parse remote response: Misconfigured -- Sauce Labs Authentication Error.(..)
    headlessTest(CrossBrowserTest): Unable to parse remote response: Misconfigured -- Sauce Labs Authentication Error.(..)
    headlessTest(CrossBrowserTest): Unable to parse remote response: Misconfigured -- Sauce Labs Authentication Error.(..)
    cleanUpAfterTestMethod(CrossBrowserTest)
    cleanUpAfterTestMethod(CrossBrowserTest)
    cleanUpAfterTestMethod(CrossBrowserTest)
    headlessTest(CrossBrowserTest): Unable to parse remote response: Misconfigured -- Sauce Labs Authentication Error.(..)
    main(SampleHeadlessSauceTest): Unable to parse remote response: Misconfigured -- Sauce Labs Authentication Error.(..)
    cleanUpAfterTestMethod(SampleHeadlessSauceTest)

    Tests run: 10, Failures: 9, Errors: 0, Skipped: 1

    0
    Comment actions Permalink

Please sign in to leave a comment.