electron-builder: Cannot download differentially, fallback to full download: Error: Maximum allowed size is 50 MB

Hi, I read in an issue here that this bug has been fixed in 22.10.5 but the issue persists for me. Maybe I’m doing something wrong.

[2021-03-30 22:36:57.201] [info]  Found version 0.8.0 (url: app-0.8.0.exe)
[2021-03-30 22:36:57.210] [info]  Downloading update from app-0.8.0.exe
[2021-03-30 22:36:57.224] [info]  Download block maps (old: "https://api.github.com/repos/me/repo/releases/assets/34224707.blockmap", new: https://api.github.com/repos/me/repo/releases/assets/34224707.blockmap)
[2021-03-30 22:36:57.750] [error] Cannot download differentially, fallback to full download: Error: Maximum allowed size is 50 MB
    at Object.responseHandler (C:\Users\me\AppData\Local\Programs\app\resources\app.asar\background.js:2:191480)
    at ClientRequest.<anonymous> (C:\Users\me\AppData\Local\Programs\app\resources\app.asar\background.js:2:192996)
    at ClientRequest.emit (events.js:315:20)
    at SimpleURLLoaderWrapper.<anonymous> (electron/js2c/browser_init.js:105:6777)
    at SimpleURLLoaderWrapper.emit (events.js:315:20)

electron: 12.0.2 electron-builder: 22.10.5 electron-updater: 4.3.8 target: nsis os: win-10.0.19042

Build options:

productName: 'App',
appId: 'com.example.app',
artifactName: 'App-${version}-${os}-${arch}.${ext}',
win: {
    target: 'nsis'
},
nsis: {
    artifactName: 'App-Setup-${version}-${os}-${arch}.${ext}',
    oneClick: true,
    perMachine: false,
    deleteAppDataOnUninstall: false,
    allowToChangeInstallationDirectory: false,
    runAfterFinish: true,
    differentialPackage: true
},
publish: [
    {
        provider: 'github',
        private: true,
        owner: 'me',
        repo: 'repo',
        token: 'token'
    }
],

package.json:

{
    "name": "repo",
    "version": "0.8.0",
    "private": true,
    "repository": {
        "url": "https://github.com/amiranagram/repo"
    },
    "author": {
        "name": "Amir Rami"
    },
    "main": "background.js",
    "scripts": {
        "serve": "vue-cli-service serve",
        "build": "vue-cli-service build",
        "lint": "vue-cli-service lint",
        "electron:serve": "vue-cli-service electron:serve",
        "electron:build": "vue-cli-service electron:build",
        "electron:publish": "vue-cli-service electron:build --publish always",
        "postinstall": "electron-builder install-app-deps"
    },
    "dependencies": {
        "@tailwindcss/forms": "^0.2.1",
        "@tailwindcss/typography": "^0.4.0",
        "dexie": "^3.0.3",
        "electron-updater": "^4.3.8",
        "imask": "^6.0.7",
        "litepicker": "^2.0.7",
        "lodash": "^4.17.21",
        "moment": "^2.29.1",
        "vee-validate": "^3.4.5",
        "vue": "^2.6.11",
        "vue-clickaway": "^2.2.2",
        "vue-directive-tooltip": "^1.6.3",
        "vue-ray": "^1.15.0",
        "vue-router": "^3.2.0",
        "vue-the-mask": "^0.11.1"
    },
    "devDependencies": {
        "@tailwindcss/postcss7-compat": "^2.0.4",
        "@vue/cli-plugin-babel": "~4.5.0",
        "@vue/cli-plugin-eslint": "~4.5.0",
        "@vue/cli-plugin-router": "~4.5.0",
        "@vue/cli-service": "~4.5.12",
        "@vue/eslint-config-standard": "^5.1.2",
        "autoprefixer": "9",
        "babel-eslint": "^10.1.0",
        "electron": "^12.0.0",
        "electron-devtools-installer": "^3.1.1",
        "electron-log": "^4.3.2",
        "eslint": "^6.7.2",
        "eslint-plugin-import": "^2.20.2",
        "eslint-plugin-node": "^11.1.0",
        "eslint-plugin-promise": "^4.2.1",
        "eslint-plugin-standard": "^4.0.0",
        "eslint-plugin-vue": "^6.2.2",
        "postcss": "7",
        "postcss-import": "^12.0.1",
        "tailwindcss": "npm:@tailwindcss/postcss7-compat",
        "vue-cli-plugin-electron-builder": "^2.0.0-rc.4",
        "vue-template-compiler": "^2.5.17"
    }
}

Anything I’m doing wrong?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 24 (1 by maintainers)

Most upvoted comments

Still no updates on this? Does anyone have workaround for this issue?

I tried everything, since the blockmap fail, it will fallback to my 80mb .exe install and wont get anywhere. This is sad, really.

Idk, I’m struggling here. There are probably 100 issues opened for this particular problem, but nobody has an answer.

Workaround: comment this block of code inside node_modules\builder-util-runtime\out\httpExecutor.js

              if (size > 52428800) {
                callback(new Error("Maximum allowed size is 50 MB"));
                return;
              }

and it will succeed downloading the update

Seems like this is not the same issue. It the same “Cannot download differentially, fallback to full download” but diff error => #5755 (comment) ?

As it seems that this is not target to the failed blockmap, but either a “solution” for those who been having this error and their executables are bigger than 50mb.