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

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

    this is Extension to @Félix Brunet answer

    Reason - there is code hidden in your app

    How to find -

    • Strip/comment code and execute until you reach error
    • check log file

    Eg - In my case i created 30 instances of winston log Unknowingly and it started giving error

    Note : if u supress this error , it will come again afetr 3..4 days

提交回复
热议问题