-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 error when trying to download recent updates #2527
Comments
Update: The lowest we could go is |
It's happening to us too and it's making it quite tricky to fix critical bugs |
Also seeing this! |
Same for us. At the moment we are forced in using "expo-updates" because we are afraid that a lot of our active users will interact with the app in those first 31 seconds after pushing the update. |
same issue. It might be ok, except after this happens, the user can't download the version again. The system thinks the client has it already, and never tries to re-download it. Is there at least a way to mark it as failed so it retries the download on next try? In case anyone is wondering, the issue isn't triggered by calling const attemptUpdate = async () => {
try {
await codePush.notifyAppReady()
const remotePackage = await codePush.checkForUpdate()
if (!remotePackage || !removePackage.mandatory) return
const localPackage = await remotePackage.download(onProgress)
if (!window.updateDownloadPercent) {
throw new Error('codePush package not ready yet (404)')
}
await localPackage.install(codePush.InstallMode.IMMEDIATE, 0)
}
catch (error) {
captureException('codePush', error)
}
}
const onProgress = ({ receivedBytes, totalBytes}) => {
const percent = receivedBytes / totalBytes
window.updateDownloadPercent = round2decimals(percent * 100)
} The issue is called just by the act of downloading the remotePackage. |
Any updates on this? |
This error often occurs. Is there a solution? |
Well this is very much still an issue. An update that was detected but failed to download should be tried again later instead of being marked as rolled back. This issue should remain open. Initial
Subsequent
|
@habovh i'm having the same error here, the exact same thing! |
This issue is not fixed yet. It occurs in my deployments seemingly randomly.
…On Fri, Jan 26, 2024 at 07:39 Roxcode ***@***.***> wrote:
@habovh <https://github.com/habovh> i'm having the same error here, the
exact same thing!
—
Reply to this email directly, view it on GitHub
<#2527 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB53IRLFFKDZYTMMEG4AFK3YQO53PAVCNFSM6AAAAAAYTXDYKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJSGE3TENJSGI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Still an issue, though now that AppCenter is being sunset it might be harder to get a fix right now. Since this issue also highlights a back-end issue, I guess once we get the "community version" of CodePush server to be able to self-host, we'll be able to identify and fix the issue to prevent 404 in the first place. |
Send your updates with the |
Has this issue resolved ?? |
@skam22 yes I'm using a similar approach where I push to staging and promote, but that's still inconvenient and IMO the update should not be considered rolled back by the client if it failed to download in the first place. |
Issue is still relevant. |
This is still relevant. |
Issue is still relevant. |
Steps to Reproduce
Expected Behavior
It is expected that we are not going to encounter a 404 error when the
sync
method gets the update.Actual Behavior
What actually happens?
I think the issues is that the download url is available but not the content. So without having too much info about what is happening in the background I can only assume that it takes some that for the update to be available although it was 'advertised' as available.
The lowest we could go without an error was to try an sync
1 minute and 23 seconds
after the update was pushed. This way we didn't get the 404 error. But I don't think that is not consistent.Environment
Similar #2014
The text was updated successfully, but these errors were encountered: