You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it may lead to the result of request operation in download function:
function dowload(){
//...
return request(url)
.then(response => {
body = response.body;
//console.log(JSON.stringify(response));
//the response is an array with length 2 . But it expect to an object since `request(url)`
})
//...
}
thanky you !
The text was updated successfully, but these errors were encountered:
i run cmd with your code:
then a err comes--the file content i write to is
undefined
{1} .i think it may be good to change sth in :
_agruments
to save the aguments for function promisified({1}
){2},{3}
) ,notagruments
since here a function too, it may have its own arguments (
{0}
)-or change (
not testing
)args.push(function(err, result) { ...}
toargs.push((err, result)=>{...}
it may lead to the result of
request
operation indownload
function:thanky you !
The text was updated successfully, but these errors were encountered: