electron-builder: Download block maps Cannot download differentially, fallback to full download - Windows 10 - Github Private -Error: Maximum allowed size is 50 MB
electron-builder version: ^22.3.2" electron version: ^8.0.0" electron-updater version: 4.2.0" Target: Windows 10 Github Private repository
`[2020-02-13 22:17:34.744] [info] Checking for update
[2020-02-13 22:17:37.465] [info] Found version 1.0.0 (url: psstracker-Setup-1.0.0.exe)
[2020-02-13 22:17:37.465] [info] Downloading update from psstracker-Setup-1.0.0.exe
[2020-02-13 22:17:37.469] [info] No cached update info available
[2020-02-13 22:17:37.471] [info] Download block maps (old: "https://api.github.com/repos/myusername/psstracker/releases/assets/18021931.blockmap", new: https://api.github.com/repos/myusername/psstracker/releases/assets/18021931.blockmap)
[2020-02-13 22:17:37.934] [error] Cannot download differentially, fallback to full download: Error: Maximum allowed size is 50 MB
at Object.responseHandler (C:\Users\har\Desktop\Myapps\epssapp\psstracker\dist\win-unpacked\resources\app.asar\node_modules\electron-updater\node_modules\builder-util-runtime\out\httpExecutor.js:239:26)
at ClientRequest.<anonymous> (C:\Users\har\Desktop\Myapps\epssapp\psstracker\dist\win-unpacked\resources\app.asar\node_modules\electron-updater\node_modules\builder-util-runtime\out\httpExecutor.js:298:17)
at ClientRequest.emit (events.js:210:5)
at SimpleURLLoaderWrapper.<anonymous> (electron/js2c/browser_init.js:2510:12)
at SimpleURLLoaderWrapper.emit (events.js:210:5)`
Please help why I am having this issue. any idea or fix please. its GitHub Pvt repo. i am trying to make it work for windows 10.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 3
- Comments: 35 (1 by maintainers)
Faced with the same problem(
[2020-12-01 21:46:11.451] [info] Download block maps (old: “http://…exe.blockmap”, new: http://…exe.blockmap) [2020-12-01 21:46:11.496] [info] Full: 67,616.07 KB, To download: 0 KB (0%) [2020-12-01 21:46:11.963] [error] Cannot download differentially, fallback to full download: Error: sha512 checksum mismatch, expected DTDTy1jthl03YzqQNmYrTJyD7Oir8MBsNRlLJbX7qGGGUolyujoIozCKxVDm8bxM70Lxeh8kqGcBFNPNRuptTQ==, got Yb7wlW9RCkOtFF4rkj67ciA/94bcGL1dIoPgqxHTglM7xY00h5sosFThv+YLNJcU91wCvStnYSKBRKfhAkUXbA==
why this issue is closed while so many people feel hurt(
Its still happening for some users, its a issue pretty common for electron updater, after years its still happening, will it be ever solved?
I’m on “electron-updater”: “^4.3.9” and “electron-builder”: “^22.13.1” And got: Cannot download differentially, fallback to full download: Error: sha512 checksum mismatch
Been facing this issue for a long time. I’m also baffled why this has been closed multiple times when people still have the issue. I don’t see any resolution on any of the issues either.
I’ve tried with at least 3 different major versions of both electron and electron-builder/updater, as well as many different minor versions. Nothing seems to fix it. Note, it works fine most of the time with a public github repo, although I’ve run into the issue using a public before. It seems the main issue is with private repos.
Can somebody please provide some sort of answer to the problem, or possibly an insight as to what is going on?
Currently on
But this size error still exist nothing changed
一样的问题,但是却下载下来了
The same problem, but the file downloaded
This is weird, so I build my program with the following dependencies “electron”: “^5.0.13”, “electron-builder”: “^22.3.2”
by downgrading electron version and auto-updates working on windows
The latest electron 8.0.0 building the app doesn’t work auto-updates. for windows.
I’m on “electron-updater”: “^4.3.9” and “electron-builder”: “^22.3.2” And got: Cannot download differentially, fallback to full download: Error: sha512 checksum mismatch
Not sure its because if my application is on the old version of elec updater, and this is the new one, but I don’t know how to compress my app, it’s about 7mb over… this is a pain.
This is still happening.
You should use the latest “electron-updater” package:
"electron-updater": "^4.3.4"Do we have a fix for the said issue? Somehow, I temporarily managed to solve the issue by making changes to the library. This has resolved my issue.
The above steps solved my issue and a new log “main” file gets generated for the latest version.
Screenshot of the above steps:
In the source code packages/builder-util-runtime/src/httpExecutor.ts 中,line 209 has the following code:
It seems that it only works on xxxxx.exe.blockmap,For differential download, you can try to delete it. When electron-updater cannot find it, it will use full download. At this time, the application should be able to update normally.
The difference download seems to download only the parts different from the history version, which will be very fast, but if the difference is > 50m, it is no different from full download.
hope that can help you
Who can help me