react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

Update contents fail data integrity check

Open tomauty opened this issue 10 years ago • 28 comments

Hi, hopefully this is just something I'm doing incorrectly. Lately I've had to deploy updates twice in a row to get them accepted. The first time I send one out, it always returns that I failed a data integrity check. This is the function I run to generate my release

/Users/tom/.nvm/versions/node/v4.2.1/bin/react-native bundle \
--reset-cache=true \
--entry-file=index.ios.js \
--platform=ios --dev=false \
--minify=true \
--bundle-output ./release/main.jsbundle \
--sourcemap-output ./release/main.map \
--assets-dest ./release

And then I follow up with

code-push release MyAppName ./release "*" --mandatory --deploymentName Staging

What other info might you need to help me out with this? :) Thanks

tomauty avatar Apr 28 '16 15:04 tomauty

Hi @rahuljiresal, this normally indicates some kind of issue where the hash of the package computed on the server doesn't match the hash computed on the client. Would it be okay with you if I inspected the contents of your package? If so, could you email me at [email protected] with your deploymentKey and release label?

richardhuaaa avatar Aug 17 '16 21:08 richardhuaaa

@silhouettes Thanks for the prompt reply. Just sent you an email.

rahuljiresal avatar Aug 17 '16 22:08 rahuljiresal

Okay, found the problem. @silhouettes Will submit a PR soon and tag you.

rahuljiresal avatar Aug 17 '16 22:08 rahuljiresal

Hi @lostintangent @geof90 @silhouettes ,i run into same error. But in my case, after react-native bundle ,i have to add some js files to directory which i would code-push later.Because of that,i get "Update contents fail data integrity check".Is there a way to solve this problem?.Or is there a way to bundle some js files as assets instead of bundle into index.ios.bundle. Forgive my bad English.If you still need me to provide anything, please let me know.Thanks.

guguru-reboot avatar Aug 03 '17 04:08 guguru-reboot

And if i just react-native bundle and code-push release without any extra operations such as I described above,code push will be performed as expected.

guguru-reboot avatar Aug 03 '17 04:08 guguru-reboot

Hi, @bluerunrun, and thank you for your question. Could you, please, provide us more details about your problem? It would be nice, if you will submit new issue and fill technical information needed for us to help you.

ruslan-bikkinin avatar Aug 03 '17 08:08 ruslan-bikkinin

I also encountered this problem. I have compiled it with a Mac computer. So there is a .DS_Store file in the folder. After I delete this file and publish it using codepush, the problem is not there. I can try it.

zhaoziliang avatar May 30 '18 08:05 zhaoziliang

i also has the problem , and only found it in ios. How to solve it? codePush's update alway failed in ios.

sunny635533 avatar Nov 13 '18 07:11 sunny635533