Open coinproduct opened 4 years ago
Can confirm this issue.
ec2-user@canisminor:/www/imgur/script/maint$ node cf-test.js
Error: timeout on just a moment
at fillCookiesJar (/www/imgur/script/maint/node_modules/cloudflare-scraper/src/fillCookiesJar.js:48:17)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async handleError (/www/imgur/script/maint/node_modules/cloudflare-scraper/index.js:18:5)
at async cloudflareScraper (/www/imgur/script/maint/node_modules/cloudflare-scraper/index.js:37:20)
at async /www/imgur/script/maint/cf-test.js:5:22
NOTE: According to NPM when installing this package (v1.0.7) the request
package is deprecated, which may be the cause of this issue to begin with, perhaps?
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
I got same error. Is there a workaround ?
Contact me on telegram teledeniz i might be able to help
On Sat, 9 Jan 2021 at 21:09, Antoine Arnoult notifications@github.com wrote:
I got same error. Is there a workaround ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JimmyLaurent/cloudflare-scraper/issues/20#issuecomment-757360564, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQUUHJHTKVAWKEOQEE6724LSZCZXRANCNFSM4T6KNVFA .
got same error, any ideas?
Perhaps this would come from the user agent used. Are you doing your tests from linux ? If so, I would advise you to use the windows user agent by commenting out the lines of the getUserAgent() function in the utils.js file as follows and testing again :
function getUserAgent() {
// const { platform } = process;
// if (platform === 'darwin') {
// return USER_AGENT_MAC;
// }
// if (platform === 'win32') {
return USER_AGENT_WINDOWS;
// }
// return USER_AGENT_LINUX;
}
Edit : more explications here
Edit 2 : a better way to implement your own User Agent here
Hi everyone, I am having the same error after using cloudflare-scrape around thrree-four months:
2021-05-07T22:25:49.624567+00:00 app[worker.1]: Error: timeout on just a moment
2021-05-07T22:25:49.624591+00:00 app[worker.1]: at fillCookiesJar (/app/node_modules/cloudflare-scraper/src/fillCookiesJar.js:48:17)
2021-05-07T22:25:49.624596+00:00 app[worker.1]: at runMicrotasks (
Anyone else is getting this error nowdays?
any ideas?