electron-builder: Cannot parse blockmap when auto updating

  • Electron Builder Version: 22.4.0

  • Electron Updater Version: 4.2.4

  • Target: NSIS

My app is updating from a private github repo and when the update check starts it never downloads differentially because of the following error. Cannot download differentially, fallback to full download: Error: Cannot parse blockmap "https://api.github.com/repos/VitruxPT/w-assistant/releases/assets/18470277.blockmap", error: incorrect header check, raw data:...

The publish command always works fine and all the files (exe, blockmap, latest.yml) are being sent to the repo sucessfully so I’m not sure if this is on my end.

This is how my main.log looks like: image

Thanks in advance

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 27
  • Comments: 33 (6 by maintainers)

Most upvoted comments

I made a PR to fix this issue.

To fix it immediately on your release computer do the following

  • Open node_modules/electron-updater/out/NsisUpdater.js
  • Goto line number 272 and replace the line with the following
 return JSON.parse((0, _zlib().gunzipSync)(data).toString());

I am facing the same exact issue while auto-updating but after some time the update occurs but full download is done not differential.

Hello, we have the same issues even with the PR

Hello, we have the same issues even with the PR

Same here! Electron builder: 22.11.7 Electron: 12.0.10 Electron-updater: 4.3.4

Another(?) Solve

WIthout using CMD to execute,then it works…

Seeing the same problem! Download still happening but no differential. Uploading to S3:

    "electron-updater": "^4.3.1",
    "electron": "^8.2.4",
    "electron-builder": "^22.6.1"

same HERE …!

Same here, differential never work because of this issue.

Same error with “electron”: “^8.2.2”, “electron-builder”: “^22.5.1”, “electron-updater”: “^4.3.1”

and a public repo