Skip to content

Could not report results to Saucelabs: Error: Failed calling updateJob: Response code 404 (Not Found) #238

@conmute

Description

@conmute

Expected Behavior

Expected Android Real device testing to report success in the en.

Actual Behavior

After saucelab succeds with job on real android device, the console stucks in infinite loop.

After debug I see that, the url should be of an available job instead. The saucelab class SauceLab._get on

throw new Error(Failed calling ${propName}: ${err.message}, ${err.response && err.response.body}); catches an failed request error.

Details of the requst of console.log({ method, uri, body }) before that line are for example:

{
  method: 'put',
  uri: 'https://api.us-west-1.saucelabs.com/rest/v1/username/jobs/5e69e7ae-7f29-4fc0-b4e3-a3b9019ce5d1',
  body: {
    id: '5e69e7ae-7f29-4fc0-b4e3-a3b9019ce5d1',
    passed: true,
    'custom-data': BrowserResult {
      startTime: 1708902358057,
      total: 399,
      success: 398,
      failed: 0,
      skipped: 1,
      totalTime: 9596,
      netTime: 9362,
      error: false,
      disconnected: false
    }
  }
}

The body.id is a faulty one, it should be:a999b57568ab4f44839858e8b879675f. Endpoint responsds with 404 and then karma-sauce-launcher keeps spamming to check the log if any updates did happen… (which is another problem)

It only happens when I am testing real andorid deivces even with latest saucelabs npm package!

Steps to Reproduce the Problem

  1. use karma-sauce-launcher latest

  2. apply package.json:overrides property if necessary to set different versions of webdriver/io

    For example in my case I did:

```
"overrides": {
  "webdriver": "^8.32.3",
  "webdriverio": "^8.32.3",
  "saucelabs": "^4.7.8",
 // or use latest, same result tried both
  "saucelabs": "^7.5.0",
},
```
  1. setup for karma sauce launcher such browser capability
    android: {
      base: 'SauceLabs',
      platformName: 'Android',
      browserName: 'Chrome',
      deviceName: 'Samsung Galaxy S21 5G',
      version: '13.0',
      automationName: 'UiAutomator2',
   }
  ```

## Specifications

- Version: latest
- Platform: MacOS 13
- Subsystem: node v20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions