microsoft / react-native-code-push

React Native module for CodePush
http://appcenter.ms
Other
8.95k stars 1.46k forks source link

A JS bundle file named "null" could not be found within the downloaded contents. #2704

Closed quany closed 3 months ago

quany commented 4 months ago

Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):

Steps to Reproduce

1.

Expected Behavior

What you expected to happen?

Actual Behavior

What actually happens?

2024-06-03 15:02:40.284 11460-11519 ReactNative             com.rn74                             E  [CodePush] Exception
                                                                                                    com.microsoft.codepush.react.CodePushInvalidUpdateException: Update is invalid - A JS bundle file named "null" could not be found within the downloaded contents. Please check that you are releasing your CodePush updates using the exact same JS bundle file name that was shipped with your app's binary.
                                                                                                        at com.microsoft.codepush.react.CodePushUpdateManager.downloadPackage(CodePushUpdateManager.java:255)
                                                                                                        at com.microsoft.codepush.react.CodePushNativeModule$3.doInBackground(CodePushNativeModule.java:300)
                                                                                                        at com.microsoft.codepush.react.CodePushNativeModule$3.doInBackground(CodePushNativeModule.java:294)
                                                                                                        at android.os.AsyncTask$3.call(AsyncTask.java:394)
                                                                                                        at java.util.concurrent.FutureTask.run(FutureTask.java:264)
                                                                                                        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1251)
                                                                                                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668)
                                                                                                        at java.lang.Thread.run(Thread.java:1012)
2024-06-03 15:02:40.308 11460-11502 ReactNativeJS           com.rn74                             I  [CodePush] An unknown error occurred.
2024-06-03 15:02:40.308 11460-11502 ReactNativeJS           com.rn74                             I  [CodePush] Update is invalid - A JS bundle file named "null" could not be found within the downloaded contents. Please check that you are releasing your CodePush updates using the exact same JS bundle file name that was shipped with your app's binary.

Reproducible Demo

Environment

(The more info the faster we will be able to address it!)

DordeDimitrijev commented 3 months ago

Hello @quany thank you for reporting this issue. Please refer to the comment in this thread as posible resolution https://github.com/microsoft/react-native-code-push/issues/2083#issuecomment-1411745157 and let me know if it helps you out.

DmitriyKirakosyan commented 3 months ago

Closing due to inactivity.