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

ESOCKETTIMEDOUT error #423

Closed
chathuriw opened this issue May 20, 2019 · 0 comments
Closed

ESOCKETTIMEDOUT error #423

chathuriw opened this issue May 20, 2019 · 0 comments

Comments

@chathuriw
Copy link

I'm getting following error with the nodejs code which calls mercury parser.

(node:6782) UnhandledPromiseRejectionWarning: Error: ESOCKETTIMEDOUT at ClientRequest.<anonymous> (/nfs/nfs7/home/truthy/node_modules/postman-request/request.js:1025:19) at Object.onceWrapper (events.js:277:13) at ClientRequest.emit (events.js:189:13) at TLSSocket.emitRequestTimeout (_http_client.js:662:40) at Object.onceWrapper (events.js:277:13) at TLSSocket.emit (events.js:189:13) at TLSSocket.Socket._onTimeout (net.js:440:8) at ontimeout (timers.js:436:11) at tryOnTimeout (timers.js:300:5) at listOnTimeout (timers.js:263:5) at Timer.processTimers (timers.js:223:10)

My node.js file is as follows.

#!/usr/bin/env node
process.env.UV_THREADPOOL_SIZE = 128;

const Mercury = require('@postlight/mercury-parser');

url = process.argv[2];
Mercury.parse(url).then(result => console.log(result));

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

2 participants