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
I realized it's because the timeout is set to true, and the request fails because the download exceeds the default limit. Problem is, when I specify timeout: 30, I get an error "[ERROR] Failed to connect to host" every time.
Also, this is intermittent, sometimes it works, usually does not:
`
'use strict';
const curl = require('curlrequest')
;
const feed = 'http://theartofcharmpodcast.theartofcharm.libsynpro.com/rss'; # Around 2.5MB
let options = {
url: feed,
verbose: true,
stderr: true,
retries: 3,
timeout: true,
headers: {
'Accept-Encoding': 'gzip'
}
};
curl.request(options, (err, data) => {
if (err) {
console.error (
: C ${feed} [ERROR] ${err}
);} else {
if ( ! data) {
console.log (
: B ${feed} [NO DATA]
);} else {
console.log (
: B ${feed} ${data.length}
);}
}
});
`
The text was updated successfully, but these errors were encountered: