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

New deployment is not applied.

Open ohjeyong opened this issue 7 years ago • 9 comments

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

Steps to Reproduce

  1. Deploy new bundle
  2. Call codePush.checkUpdate() 3.Check downloadUrl

Expected Behavior

What you expected to happen? Update successful or downloadUrl works fine.

Actual Behavior

What actually happens? Update is not applied even though chcekUpdate returns new bundle label and download url. Also, that downloadUrl is not working too.

Reproducible Demo

  • Download https://github.com/Microsoft/react-native-code-push/archive/master.zip and unzip. From Examples folder run node create-app.js appName [email protected] [email protected] command to generate plain CodePushified React Native app. Please see description on top of create-app.js file content if needed
  • If you can't reproduce the bug on it, provide us as much info as possible about your project

Environment

  • react-native-code-push version: 5.6.0
  • react-native version: 0.59.5
  • iOS/Android/Windows version:
  • Does this reproduce on a debug build or release build? release build
  • Does this reproduce on a simulator, or only on a physical device? physical device

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

I have used this package in last 6 month. It works perfectly fine. However, today, while I'm working on minor javascript update to my app, I found that the new deployment bundle is not applied. I tried to deploy it as mandatory, but still update is not applied. I confirmed that new bundle is uploaded successfully in appcenter. I call codePush.checkUpdate() then it returns new bundle label. However, new bundle downloadUrl is not working. If I copy and paste downloadUrl in browser, 404 returns like below image. Screenshot from 2019-04-22 19-51-28 I think azure cdn is broken. Can you check?

ohjeyong avatar Apr 22 '19 10:04 ohjeyong

After 30minutes, downloadUrl works fine but app update is still not applied.

ohjeyong avatar Apr 22 '19 11:04 ohjeyong

Now, downloadUrl is not working again. I think azure cdn is not stable now.

ohjeyong avatar Apr 22 '19 11:04 ohjeyong

same issue.

DeerDevelop avatar Apr 22 '19 11:04 DeerDevelop

Hey @ohjeyong, @DeerDevelop Thanks for reporting!

Could you please clarify what kind of URL you can't access?

I've tested it with:

https://codepush.blob.core.windows.net/storagev2/[blob_url]
https://codepushupdates.azureedge.net/storagev2/[blob_url]

and everything works fine.

yuri-kulikov avatar Apr 22 '19 12:04 yuri-kulikov

Same issue. Hi @yuri-kulikov, https://codepushupdates.azureedge.net/storagev2/[blob_url] can't be accessed. The other one is fine.

leedan77 avatar Apr 22 '19 12:04 leedan77

Hi, @yuri-kulikov Same as @leedan77.

I can download bundle file via appcenter website download bundle button(this button is linked with https://codepush.blob.core...

But not working on https://codepushupdates.azureedge... which is the downloadUrl from codePush.checkUpdate().

ohjeyong avatar Apr 22 '19 13:04 ohjeyong

We're still investigating. Please keep us informed if the problem is solved.

yuri-kulikov avatar Apr 22 '19 16:04 yuri-kulikov

This morning I have retried and it has been solved without doing anything. I think it is temporary network issue or azure cdn issue.

ohjeyong avatar Apr 23 '19 01:04 ohjeyong

Since the problem is solved I think we can close the issue for now. But we will continue to monitor this. Please feel free to reopen the issue or create another one if needed.

yuri-kulikov avatar Apr 29 '19 14:04 yuri-kulikov