title: Hot Code Push fails because of "Error downloading asset" in cordova-plugin-meteor-webapp
body: <p>I’ve noticed for a long time that Hot Code Push works unreliably in our production app. It only works about half of the time. Reproducing on Android, when Hot Code Push fails, it is always with the below error.</p>
  <p>Meteor 1.10.2, cordova-plugin-meteor-webapp 1.9.1.</p>
  <p>As far as I can tell the error is thrown <a href="https://github.com/meteor/cordova-plugin-meteor-webapp/blob/master/src/android/AssetBundleDownloader.java#L81" rel="nofollow noreferrer">in AssetBundleDownloader.java</a> and passed on by <a href="https://github.com/meteor/cordova-plugin-meteor-webapp/blob/master/www/webapp_local_server.js#L51" rel="nofollow noreferrer">webapp-local-server.js</a></p>
  <p>What might cause this?</p>
  <pre><code>Error: Error downloading asset: /__cordova/packages/templating-compiler.js
    at http://localhost:12472/plugins/cordova-plugin-meteor-webapp/www/webapp-local-server.js:51:21
    at Object.callbackFromNative (http://localhost:12472/cordova.js:287:58)
    at &lt;anonymous&gt;:1:9
  </code></pre>
  <p>The filename behind <code>/__cordova/packages/</code> varies each time - <code>dynamic-import.js</code>, <code>es5-shim.js</code>, things like <code>a8556108306b4c6c9b96fdb067c7f600610471a.map</code></p>
  <p>Edit:</p>
  <p>The above logs were from the staging app; in production the errors are slightly different. Instead of <code>Error downloading asset: /__cordova/packages/templating-compiler.js</code>, I've seen each of the following:</p>
  <ul>
  <li>Error: Error downloading asset: /</li>
  <li>Error: timeout</li>
  <li>Error: Error downloading asset: /videos/chat-video.mp4</li>
  <li>Error: Error downloading asset: /__cordova/videos/chat-video.mp4</li>
  <li>Error: Error downloading asset manifest</li>
  <li>Error: Error downloading asset: /__cordova/2b1fae32d...bed2.js</li>
  <li>Error: Error downloading asset: /__cordova/2b1fae32d...bed2.stats.json</li>
  </ul>