<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[UnhandledPromiseRejectionWarning: TypeError: fetch failed]]></title><description><![CDATA[<p dir="auto">Platform: Raspbian 12</p>
<p dir="auto">Node Version: 18.19.0</p>
<p dir="auto">MagicMirror Version: 2.27</p>
<p dir="auto">Description:<br />
I am seeing the following errors in my logs, though I’m not necessarily seeing any problems on my display (at least not regularly).</p>
<pre><code class="language-sh">0|mm       | 024-05-16 14:10:44.296] [ERROR] 2024-05-16T14:10:44 &lt;error&gt; (node:26446) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 97) (/home/username/MagicMirror/node:internal/process/warning:60 writeOut) 
0|mm       | [2024-05-16 14:11:12.283] [ERROR] 2024-05-16T14:11:12 &lt;error&gt; (node:26446) UnhandledPromiseRejectionWarning: TypeError: fetch failed
0|mm       |     at Object.fetch (node:internal/deps/undici/undici:12293:11)
0|mm       |  (/home/username/MagicMirror/node:internal/process/warning:60 writeOut) 
0|mm       | [2024-05-16 14:11:12.291] [ERROR] 2024-05-16T14:11:12 &lt;error&gt; (node:26446) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 119) (/home/username/MagicMirror/node:internal/process/warning:60 writeOut) 
0|mm       | /home/username/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
0|mm       | [2024-05-16 14:12:49.844] [ERROR] 2024-05-16T14:12:49 &lt;error&gt; (node:28645) UnhandledPromiseRejectionWarning: TypeError: fetch failed
0|mm       |     at Object.fetch (node:internal/deps/undici/undici:12293:11)
0|mm       | 
0|mm       | (Use `electron --trace-warnings ...` to show where the warning was created) (/home/username/MagicMirror/node:internal/process/warning:60 writeOut) 
0|mm       | [2024-05-16 14:12:49.851] [ERROR] 2024-05-16T14:12:49 &lt;error&gt; (node:28645) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 52) (/home/username/MagicMirror/node:internal/process/warning:60 writeOut) 
0|mm       | [2024-05-16 14:13:09.544] [ERROR] 2024-05-16T14:13:09 &lt;error&gt; (node:28645) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit (/home/username/MagicMirror/node:internal/process/warning:60 writeOut)
</code></pre>
<p dir="auto">It seems to come up most often when I load the MMM-Pinfo module in my config, though I have seen it at other times as well.  The problem is that I don’t see enough information in these logs to find a source myself.</p>
<p dir="auto">Steps to Reproduce: Load MM, usually with MMM-Pinfo module enabled.</p>
<p dir="auto">If anyone has any ideas, that would be great.</p>
]]></description><link>https://forum.magicmirror.builders/topic/18743/unhandledpromiserejectionwarning-typeerror-fetch-failed</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 11:22:35 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18743.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 May 2024 22:15:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to UnhandledPromiseRejectionWarning: TypeError: fetch failed on Thu, 16 May 2024 22:43:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dathbe" aria-label="Profile: dathbe">@<bdi>dathbe</bdi></a> said in <a href="/post/117812">UnhandledPromiseRejectionWarning: TypeError: fetch failed</a>:</p>
<blockquote>
<p dir="auto">Platform: Raspbian 12</p>
<p dir="auto">Node Version: 18.19.0</p>
<p dir="auto">MagicMirror Version: 2.27</p>
<p dir="auto">Description:<br />
I am seeing the following errors in my logs, though I’m not necessarily seeing any problems on my display (at least not regularly).</p>
<pre><code class="language-sh">0|mm       | 024-05-16 14:10:44.296] [ERROR] 2024-05-16T14:10:44 &lt;error&gt; (node:26446) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 97) (/home/username/MagicMirror/node:internal/process/warning:60 writeOut) 
0|mm       | [2024-05-16 14:11:12.283] [ERROR] 2024-05-16T14:11:12 &lt;error&gt; (node:26446) UnhandledPromiseRejectionWarning: TypeError: fetch failed
0|mm       |     at Object.fetch (node:internal/deps/undici/undici:12293:11)
0|mm       |  (/home/username/MagicMirror/node:internal/process/warning:60 writeOut) 
0|mm       | [2024-05-16 14:11:12.291] [ERROR] 2024-05-16T14:11:12 &lt;error&gt; (node:26446) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 119) (/home/username/MagicMirror/node:internal/process/warning:60 writeOut) 
0|mm       | /home/username/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
0|mm       | [2024-05-16 14:12:49.844] [ERROR] 2024-05-16T14:12:49 &lt;error&gt; (node:28645) UnhandledPromiseRejectionWarning: TypeError: fetch failed
0|mm       |     at Object.fetch (node:internal/deps/undici/undici:12293:11)
0|mm       | 
0|mm       | (Use `electron --trace-warnings ...` to show where the warning was created) (/home/username/MagicMirror/node:internal/process/warning:60 writeOut) 
0|mm       | [2024-05-16 14:12:49.851] [ERROR] 2024-05-16T14:12:49 &lt;error&gt; (node:28645) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 52) (/home/username/MagicMirror/node:internal/process/warning:60 writeOut) 
0|mm       | [2024-05-16 14:13:09.544] [ERROR] 2024-05-16T14:13:09 &lt;error&gt; (node:28645) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket]. Use emitter.setMaxListeners() to increase limit (/home/username/MagicMirror/node:internal/process/warning:60 writeOut)
</code></pre>
<p dir="auto">It seems to come up most often when I load the MMM-Pinfo module in my config, though I have seen it at other times as well.  The problem is that I don’t see enough information in these logs to find a source myself.</p>
<p dir="auto">Steps to Reproduce: Load MM, usually with MMM-Pinfo module enabled.</p>
<p dir="auto">If anyone has any ideas, that would be great.</p>
</blockquote>
<p dir="auto">pinfo doesn’t use fetch…</p>
<p dir="auto">Sadly,  best way is to comment out, or disabled:true<br />
each module  til you find the culprit</p>
]]></description><link>https://forum.magicmirror.builders/post/117813</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117813</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 16 May 2024 22:43:46 GMT</pubDate></item></channel></rss>