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

前端 未结 7 1722
忘了有多久
忘了有多久 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:42

    It also happened to me

    I use this code and it worked

    require('events').EventEmitter.defaultMaxListeners = infinity;
    

    Try it out. It may help

    Thanks

提交回复
热议问题