Page MenuHomePhabricator

Cannot read property 'connectTimeoutTimer' of undefined
Closed, ResolvedPublic

Description

$ node bin/parserTests.js --wt2html --wt2wt --html2wt --html2html --selser --no-color --quiet --blacklist
Starting Mock API server.
Mock MediaWiki API started on: 59337
warning ParserTests.txt not up-to-date with upstream.
ParserTests running with node v5.7.0
Initialization complete. Now launching tests.
TypeError: Cannot read property 'connectTimeoutTimer' of undefined

at ConnectTimeoutAgent.createSocket (/home/fox/website/parsoid/lib/mw/ApiRequest.js:31:40)
at ConnectTimeoutAgent.Agent.addRequest (_http_agent.js:141:10)
at new ClientRequest (_http_client.js:147:16)
at Object.exports.request (http.js:31:10)
at Request.start (/home/fox/website/parsoid/node_modules/request/request.js:793:30)
at Request.end (/home/fox/website/parsoid/node_modules/request/request.js:1391:10)
at end (/home/fox/website/parsoid/node_modules/request/request.js:564:14)
at Immediate._onImmediate (/home/fox/website/parsoid/node_modules/request/request.js:578:7)
at processImmediate [as _immediateCallback] (timers.js:383:17)

I get the same error when running the server and trying to edit something using VE.

Event Timeline

This is a problem with node v5.7 onwards .. Works with previous node versions. https://gerrit.wikimedia.org/r/#/c/273523/ fixes this, but it hasn't yet been reviewed and merged.

Change 273523 had a related patch set uploaded (by Arlolra):
T128659: Handle async createSocket

https://gerrit.wikimedia.org/r/273523

Arlolra triaged this task as Medium priority.

Change 273523 merged by jenkins-bot:
T128659: Handle async createSocket

https://gerrit.wikimedia.org/r/273523