<?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[[Solved]Unexpected error (Bad Gateway) when uploading image to template with Mosaico or GrapheJS]]></title><description><![CDATA[<p dir="auto">Hi,<br />
Since a few days (and it doesn't seem related to the last update : Mailtrain Package v1.7.0 App v1.24.1),  I get this error "Unexpected error (Bad Gateway)" whenever I try to upload an image with Mosaico or GrapeJS.</p>
<p dir="auto">With both editors, the logs tell me</p>
<pre><code>Mar 17 14:47:53 fs.js:168
Mar 17 14:47:53 throw new ERR_INVALID_CALLBACK(cb);
Mar 17 14:47:53 ^
Mar 17 14:47:53
Mar 17 14:47:53 TypeError [ERR_INVALID_CALLBACK]: Callback must be a function. Received undefined
Mar 17 14:47:53 at makeCallback (fs.js:168:11)
Mar 17 14:47:53 at Object.unlink (fs.js:1199:14)
Mar 17 14:47:53 at ReadStream.&lt;anonymous&gt; (/app/code/node_modules/jquery-file-upload-middleware/lib/uploadhandler.js:149:48)
Mar 17 14:47:53 at ReadStream.emit (events.js:327:22)
Mar 17 14:47:53 at ReadStream.EventEmitter.emit (domain.js:467:12)
Mar 17 14:47:53 at endReadableNT (internal/streams/readable.js:1327:12)
Mar 17 14:47:53 at processTicksAndRejections (internal/process/task_queues.js:80:21) {
Mar 17 14:47:53 code: 'ERR_INVALID_CALLBACK'
Mar 17 14:47:53 }
Mar 17 14:47:53 npm ERR! code ELIFECYCLE
Mar 17 14:47:53 npm ERR! errno 1
Mar 17 14:47:53 npm ERR! mailtrain@1.24.0 start: `node index.js`
Mar 17 14:47:53 npm ERR! Exit status 1
Mar 17 14:47:53 npm ERR!
</code></pre>
<p dir="auto">The images actually get uploaded to /tmp.<br />
Anyone having the same problem or  any idea on what to investigate ?</p>
<p dir="auto">Thanks !</p>
]]></description><link>https://forum.cloudron.io/topic/4707/solved-unexpected-error-bad-gateway-when-uploading-image-to-template-with-mosaico-or-graphejs</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Nov 2026 03:46:17 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/4707.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Mar 2021 13:58:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved]Unexpected error (Bad Gateway) when uploading image to template with Mosaico or GrapheJS on Fri, 02 Apr 2021 17:30:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/camille" aria-label="Profile: camille">@<bdi>camille</bdi></a> thanks, I have left a note there. We can help them fix/update it if they have interest in keeping mailtrain 1 updated.</p>
]]></description><link>https://forum.cloudron.io/post/29089</link><guid isPermaLink="true">https://forum.cloudron.io/post/29089</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Fri, 02 Apr 2021 17:30:48 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Unexpected error (Bad Gateway) when uploading image to template with Mosaico or GrapheJS on Fri, 02 Apr 2021 09:48:42 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a>  for the fix. I have reported the problem upstream : <a href="https://github.com/Mailtrain-org/mailtrain/issues/1030" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Mailtrain-org/mailtrain/issues/1030</a></p>
]]></description><link>https://forum.cloudron.io/post/29081</link><guid isPermaLink="true">https://forum.cloudron.io/post/29081</guid><dc:creator><![CDATA[Camille]]></dc:creator><pubDate>Fri, 02 Apr 2021 09:48:42 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Unexpected error (Bad Gateway) when uploading image to template with Mosaico or GrapheJS on Thu, 01 Apr 2021 23:22:21 GMT]]></title><description><![CDATA[<p dir="auto">I ended up deprecating nodejs version and it works after that.</p>
<p dir="auto"><img src="/assets/uploads/files/1617319258430-1caf21a7-252b-419e-8e2c-e768a78f4e65-image.png" alt="1caf21a7-252b-419e-8e2c-e768a78f4e65-image.png" class="img-markdown  img-fluid" /></p>
]]></description><link>https://forum.cloudron.io/post/29057</link><guid isPermaLink="true">https://forum.cloudron.io/post/29057</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 01 Apr 2021 23:22:21 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Unexpected error (Bad Gateway) when uploading image to template with Mosaico or GrapheJS on Thu, 01 Apr 2021 23:05:18 GMT]]></title><description><![CDATA[<p dir="auto">The root cause of the issue is <a href="https://github.com/aguidrevitch/jquery-file-upload-middleware/issues/85" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/aguidrevitch/jquery-file-upload-middleware/issues/85</a></p>
]]></description><link>https://forum.cloudron.io/post/29056</link><guid isPermaLink="true">https://forum.cloudron.io/post/29056</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 01 Apr 2021 23:05:18 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Unexpected error (Bad Gateway) when uploading image to template with Mosaico or GrapheJS on Thu, 01 Apr 2021 22:58:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/camille" aria-label="Profile: camille">@<bdi>camille</bdi></a> Sorry for the delay, but I can reproduce the issue. Are you able to report the issue upstream at <a href="https://github.com/Mailtrain-org/mailtrain" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Mailtrain-org/mailtrain</a> ? Mailtrain has not made a release in quite a while now (almost 2.5 years), so I am not sure what the development status of the project is.</p>
<p dir="auto">FWIW, we still we use mailtrain but we just don't use that email builder. Instead, I have a template that I made from <a href="https://beefree.io/bee-free/" target="_blank" rel="noopener noreferrer nofollow ugc">https://beefree.io/bee-free/</a> and then I pasted that html into the newsletter.</p>
]]></description><link>https://forum.cloudron.io/post/29055</link><guid isPermaLink="true">https://forum.cloudron.io/post/29055</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Thu, 01 Apr 2021 22:58:25 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Unexpected error (Bad Gateway) when uploading image to template with Mosaico or GrapheJS on Thu, 25 Mar 2021 12:51:25 GMT]]></title><description><![CDATA[<p dir="auto">Actually, I get the same problem with a fresh install of the app (Package v1.7.0<br />
App v1.24.1).<br />
Has anyone a working instance of this version?</p>
]]></description><link>https://forum.cloudron.io/post/28564</link><guid isPermaLink="true">https://forum.cloudron.io/post/28564</guid><dc:creator><![CDATA[Camille]]></dc:creator><pubDate>Thu, 25 Mar 2021 12:51:25 GMT</pubDate></item></channel></rss>