<ul dir="auto">
<li>Electron version: 0.37.2 &amp; 0.35.5</li>
<li>Operating system: OSX 10.11</li>
</ul>
<p dir="auto">Part of the stack trace:<br>
Responsible:           Electron [25499]<br>
User ID:               502</p>
<p dir="auto">Date/Time:             2016-03-25 17:01:48.270 +0200<br>
OS Version:            Mac OS X 10.11.4 (15E65)<br>
Report Version:        11<br>
Anonymous UUID:        2C6BD5A7-8763-4740-F4C9-9AAAE37693B8</p>
<p dir="auto">Sleep/Wake UUID:       F49F40D7-B263-4D40-9100-769091599763</p>
<p dir="auto">Time Awake Since Boot: 210000 seconds<br>
Time Since Wake:       24000 seconds</p>
<p dir="auto">System Integrity Protection: enabled</p>
<p dir="auto">Crashed Thread:        28  com.apple.NSURLConnectionLoader</p>
<p dir="auto">Exception Type:        EXC_CRASH (SIGABRT)<br>
Exception Codes:       0x0000000000000000, 0x0000000000000000<br>
Exception Note:        EXC_CORPSE_NOTIFY</p>
<p dir="auto">Application Specific Information:<br>
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber length]: unrecognized selector sent to instance 0x29a37'<br>
terminating with uncaught exception of type NSException<br>
abort() called</p>
<p dir="auto">Is there any way to debug this? Calling <code class="notranslate">setFeedURL</code> seems to work fine.</p>
<p dir="auto">Hello,</p>
<p dir="auto">I tried to add auto-updating to a project, but I get the following error: <code class="notranslate">Electron[2596:20416] -[__NSCFNumber length]: unrecognized selector sent to instance 0x1505b49b61437</code>, with Electron v0.33.7 packaged using <code class="notranslate">electron-packager</code> on OSX 10.10.5.</p>
<p dir="auto">Here is a minimal main process file I have the issue with, I set the feed URL to atom's one to make sure the problem wouldn't be from my server, but the result is the same:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var autoUpdater = require('auto-updater');

autoUpdater.on('error', function(event, message) {
  console.log('auto-updater error', message);
});
autoUpdater.on('checking-for-update', function() {
  console.log('auto-updater checking for update');
});
autoUpdater.on('update-available', function() {
  console.log('auto-updater update available');
});
autoUpdater.on('update-not-available', function() {
  console.log('auto-updater update not available');
});
autoUpdater.on('update-downloaded', function() {
  console.log('auto-updater update downloaded');
});

autoUpdater.setFeedUrl('https://atom.io/api/updates');
autoUpdater.checkForUpdates();"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">autoUpdater</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'auto-updater'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-s1">autoUpdater</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'error'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">,</span> <span class="pl-s1">message</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'auto-updater error'</span><span class="pl-kos">,</span> <span class="pl-s1">message</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">autoUpdater</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'checking-for-update'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'auto-updater checking for update'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">autoUpdater</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'update-available'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'auto-updater update available'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">autoUpdater</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'update-not-available'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'auto-updater update not available'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">autoUpdater</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'update-downloaded'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'auto-updater update downloaded'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>

<span class="pl-s1">autoUpdater</span><span class="pl-kos">.</span><span class="pl-en">setFeedUrl</span><span class="pl-kos">(</span><span class="pl-s">'https://atom.io/api/updates'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">autoUpdater</span><span class="pl-kos">.</span><span class="pl-en">checkForUpdates</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Here are the full logs, launching the app from a terminal after being packaged with <code class="notranslate">electron-packager</code> and codesigned:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="auto-updater checking for update
2015-10-12 10:08:59.995 Electron[2596:20416] -[__NSCFNumber length]: unrecognized selector sent to instance 0x1505b49b61437
auto-updater error The request timed out.: (null)"><pre class="notranslate"><code class="notranslate">auto-updater checking for update
2015-10-12 10:08:59.995 Electron[2596:20416] -[__NSCFNumber length]: unrecognized selector sent to instance 0x1505b49b61437
auto-updater error The request timed out.: (null)
</code></pre></div>
<p dir="auto">Is there anything I'm missing trying to setup the auto-updater?<br>
Thanks for your help.</p>