node.js - request - How to “emitter.setMaxListeners()”?

前端 未结 7 1607
忘了有多久
忘了有多久 2020-11-28 06:27

When I do a GET on a certain URI using the node.js \'request\' module;

var options = {uri:\"aURI\", headers:headerData};
request.get(options, function (error         


        
相关标签:
7条回答
  • 2020-11-28 06:54

    Try to use: require('events').EventEmitter.defaultMaxListeners = Infinity;

    0 讨论(0)
提交回复
热议问题