Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Error: An error has occurred while performing the operation #672

Open
nguyendinhdoan opened this issue Mar 11, 2021 · 0 comments
Open

Error: An error has occurred while performing the operation #672

nguyendinhdoan opened this issue Mar 11, 2021 · 0 comments

Comments

@nguyendinhdoan
Copy link

nguyendinhdoan commented Mar 11, 2021

I've released a new package to appcenter. After the users (not all, just 10% of them) have downloaded the package and installed it (not applied yet), an Error occurs, the error message is below:
"The update contents failed the data integrity check"

I think the process was interrupted when the package was being unzip so that the computedHash (under cordova-plugin-code-push/localPackage.js/) was wrong? It happens to both ios and Android such as iOS 14.4, Android 11. I checked the logs and I found some stacktrace as below. Any help would be appreciated!

Error 1

Stacktrace:
Error: An error has occurred while performing the operation.  Error code: 6
    at Function.FileUtil.fileErrorToError (file:///android_asset/www/plugins/cordova-plugin-code-push/bin/www/fileUtil.js:22:16)
    at fail (file:///android_asset/www/plugins/cordova-plugin-code-push/bin/www/fileUtil.js:107:31)
    at fail (file:///android_asset/www/plugins/cordova-plugin-file/www/Entry.js:153:9)
    at Object.callbackFromNative (file:///android_asset/www/cordova.js:297:52)
    at <anonymous>:1:9
Some extra logs before the error occurs:

[CodePush] Applying full update
[CodePush] Install succeeded.

Error 2

Stacktrace

It's very similar to the first one, except the Error code

Error: An error has occurred while performing the operation.  Error code: 1
    at Function.FileUtil.fileErrorToError (file:///android_asset/www/plugins/cordova-plugin-code-push/bin/www/fileUtil.js:22:16)
    at fail (file:///android_asset/www/plugins/cordova-plugin-code-push/bin/www/fileUtil.js:107:31)
    at fail (file:///android_asset/www/plugins/cordova-plugin-file/www/Entry.js:153:9)
    at Object.callbackFromNative (file:///android_asset/www/cordova.js:297:52)
    at <anonymous>:1:9
Some extra logs before the error occurs:

[CodePush] Applying full update
[CodePush] Install succeeded.

My packages are:

"dependencies": {
    "code-push": "3.1.5",
    "cordova-common": "3.2.1",
    "cordova-gen-icon": "0.4.2",
    "cordova-ios": "5.0.0",
    "cordova-plugin-app-version": "0.1.9",
    "cordova-plugin-appcenter-analytics": "0.5.1",
    "cordova-plugin-appcenter-crashes": "0.5.1",
    "cordova-plugin-appcenter-shared": "0.5.1",
    "cordova-plugin-ble-central": "1.2.2",
    "cordova-plugin-code-push": "1.12.5",
    "cordova-plugin-compat": "1.2.0",
    "cordova-plugin-deeplinks": "1.1.1",
    "cordova-plugin-device": "2.0.3",
    "cordova-plugin-dialogs": "2.0.2",
    "cordova-plugin-file": "4.3.3",
    "cordova-plugin-file-transfer": "1.6.3",
    "cordova-plugin-inappbrowser": "4.0.0",
    "cordova-plugin-network-information": "2.0.1",
    "cordova-plugin-splashscreen": "5.0.2",
    "cordova-plugin-statusbar": "2.4.1",
    "cordova-plugin-whitelist": "1.3.4",
    "cordova-plugin-zip": "3.1.0",
    "fs-extra": "9.0.1",
    "phonegap-plugin-push": "2.3.0",
    "shelljs": "0.8.3",
    "underscore": "1.9.1",
    "unorm": "1.6.0",
    "xcode": "2.0.0"
  }

Another issue created by me that relates to this one #660

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant