Comments (2)
There seems to be some strange behaviour in the code. The internal code for downloading the job asset needs 3 arguments, see https://github.com/saucelabs/node-saucelabs/blob/master/src/index.js#L175
The docs tell this
GET /v1/jobs/{id}/{assetName}
No description available.
Example:
api.downloadJobAsset(id, filename)
The index.d.ts
that is generated says this
/**
* Get job asset
* @method
* @name SauceLabs#downloadJobAsset
* @param {string} id - job id
* @param {string} filename - filename
*/
downloadJobAsset(id: string, filename: string): Promise<File>;
A quick and dirty fix like below would solve the problem for now by adding the blow code here https://github.com/saucelabs/node-saucelabs/blob/master/src/index.js#L182
if(!downloadPath){
downloadPath = `./${assetName}`
}
But the docs and index.d.ts
are not aligned with the code.
What do you think?
from node-saucelabs.
@tborys thanks for reporting the issue and @wswebcreation thanks for looking into it. I updated the docs to reflect this command a bit better. It will only store the asset to your FS if you provide a 3rd parameter because sometimes you want to work with the job asset in your script without storing it.
from node-saucelabs.
Related Issues (20)
- Failure on M1 Mac: unexpected signal during runtime execution HOT 5
- Response code 404 when downloading sc-4.6.5-linux32.tar.gz HOT 9
- Real devices rdc endpoints supported? HOT 3
- Deprecated Tunnels REST API version is used HOT 1
- Update build URL returned by listBuilds command HOT 3
- Sauce Connect 4.7.1 not working with newest release HOT 1
- Upgrade to 6.2.1 causes "WebDriver Error: Sauce could not start your job" HOT 12
- bin-wrapper is problematic HOT 4
- suggested various refactors HOT 4
- Proxy argument not getting passed to SC HOT 2
- query-string might need to be a dependency instead of a devDependency HOT 3
- npm audit surfaces 'got' dependency vulnerability HOT 2
- Better ESM compatibility HOT 2
- Vulnerability issue through `download` dependency HOT 7
- require() of ES Module HOT 8
- CommonJS support HOT 4
- Could not report results to Saucelabs: Error: Failed calling updateJob: Response code 404 (Not Found)
- Type mismatch for api
- Add support for Sauce Connect 5 HOT 1
- Readiness check of Sauce Connect Proxy 5 does not work HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-saucelabs.