MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

Calendar Module Error "Exceeded maxRedirects. Probably stuck in a redirect loop"

  • Hi!

    I’m trying to fetch this calender in the default calendar module:

    This gives me the following error:

    (node:22123) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 pipe listeners added. Use emitter.setMaxListeners() to increase limit
    Calendar Error. Could not fetch calendar: Error: Exceeded maxRedirects. Probably stuck in a redirect loop
        at Redirect.onResponse (/home/pi/MagicMirror/modules/node_modules/request/lib/redirect.js:98:27)
        at Request.onRequestResponse (/home/pi/MagicMirror/modules/node_modules/request/request.js:993:22)
        at ClientRequest.emit (events.js:182:13)
        at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:546:21)
        at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
        at TLSSocket.socketOnData (_http_client.js:432:20)
        at TLSSocket.emit (events.js:182:13)
        at addChunk (_stream_readable.js:279:12)
        at readableAddChunk (_stream_readable.js:264:11)
        at TLSSocket.Readable.push (_stream_readable.js:219:10)

    I googled a possible solution, which is to add

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

    somewhere. But I don’t know where. Changing the Node Module Files is probably not best practise…

    Thanks for help!

Log in to reply