Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
conmute opened this issue Feb 26, 2024 · 0 comments

Comments

@conmute
Copy link

conmute commented Feb 26, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant