question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Failed to download manifest from URL' error after eas build

See original GitHub issue

Summary

I have this code in my app to check if any OTA update available: await Updates.checkForUpdateAsync()

When I build the app using eas build and run the app, it will notify an error in my Bugsnag saying: Failed to download manifest from URL: https://exp.host/@xxxx/xxxx

This issue does not occur when I build using expo build

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

Android, iOS

SDK Version (managed workflow only)

44

Environment

expo-env-info 1.0.2 environment info: System: OS: Windows 10 10.0.19042 Binaries: Node: 16.13.1 - C:\Program Files\nodejs\node.EXE npm: 7.22.0 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 2021.1.0.0 AI-211.7628.21.2111.8139111 npmPackages: expo: ^44.0.0 => 44.0.3 react: 17.0.1 => 17.0.1 react-dom: 17.0.1 => 17.0.1 react-native: 0.64.3 => 0.64.3 react-native-web: 0.17.1 => 0.17.1 Expo Workflow: managed

Reproducible demo

  1. This code is in App.js
const checkAppUpdates = async () => {
  if (!__DEV__) {
    try {
      const update = await Updates.checkForUpdateAsync()
      if (update.isAvailable) {
        setIsUpdateAvailable(true)
      }
    } catch (e) {
      Bugsnag.notify(e)
    }
  }
}

useEffect(() => {
  checkAppUpdates()
}, [])
  1. Run eas build -p android
  2. Install and run the app as a standalone build.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:24 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
ArthurDias01commented, Mar 18, 2022

I ran into the same error using Sentry. And also, after releasing a new Build it still errors out (even though I also ran “expo publish again”)

useEffect(() => {
        async function updateApp() {
            const { isAvailable } = await Updates.checkForUpdateAsync();
            if (isAvailable) {
                await Updates.fetchUpdateAsync();
                await Updates.reloadAsync();
            }
        }
        updateApp();
    }, [])
...

new error after careful app revision:

Failed to download manifest from URL: https://exp.host/@user/app/index.exp?sdkVersion=44.0.0
3reactions
s1mpl3commented, Aug 22, 2022

Same thing here. SDK 46, migrated from the traditional update which worked great but now I’m stuck with that message.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting build errors and crashes - Expo Documentation
A reference for troubleshooting build errors and crashes when using EAS Build.
Read more >
Configuring EAS Build with eas.json - Expo Documentation
Learn how a project using EAS services is configured with eas.json. ... This indicates that this build depends on expo-dev-client.
Read more >
Use EAS Update in an existing project - Expo Documentation
If you go to the URL directly, you'll see an error about missing a header. You can see a manifest by adding three...
Read more >
How EAS Update works - Expo Documentation
EAS Update is a service that allows you to deliver small bug fixes and updates to your users immediately as you work on...
Read more >
Add expo-updates to an existing project - Expo Documentation
If you are creating a new project, we recommend using npx create-react-native-app instead of npx react-native init because it will handle the following...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found