Giter Site home page Giter Site logo

[SDK51][Dev Client] Development client on android fails to open eas update from updates list with "Failed to open app" about expo HOT 4 OPEN

romanonthego avatar romanonthego commented on May 29, 2024
[SDK51][Dev Client] Development client on android fails to open eas update from updates list with "Failed to open app"

from expo.

Comments (4)

romanonthego avatar romanonthego commented on May 29, 2024

More information: it appears that expo server is responding with 406 status code for https://u.expo.dev/update/:uuid

this is the request from the android network inspector:

curl 'https://u.expo.dev/update/:update_id:' \
  -H 'accept: application/expo+json,application/json' \
  -H 'accept-encoding: gzip' \
  -H 'connection: Keep-Alive' \
  -H 'expo-dev-client-id: :client_id:' \
  -H 'expo-platform: android' \
  -H 'host: u.expo.dev' \
  -H 'user-agent: okhttp/4.11.0' \
  --compressed

> EAS Update clients must accept "multipart/mixed" responses

adding multipart/mixed fixes the issue with the request:

curl 'https://u.expo.dev/update/:update_id:' \
  -H 'accept: application/expo+json,application/json,multipart/mixed' \
  -H 'accept-encoding: gzip' \
  -H 'connection: Keep-Alive' \
  -H 'expo-dev-client-id: :client_id:' \
  -H 'expo-platform: android' \
  -H 'host: u.expo.dev' \
  -H 'user-agent: okhttp/4.11.0' \
  --compressed

> -------ExpoManifestBoundary-LQ4Qq5LDR7qrETeHacn_3A
> Content-Disposition: form-data; name="manifest"
> Content-Type: application/json
> .....

from expo.

brentvatne avatar brentvatne commented on May 29, 2024

hi there! can you share a link to the full update url to [email protected]? thanks

from expo.

romanonthego avatar romanonthego commented on May 29, 2024

btw, I have tried to apply patch to the expo-dev-launcher

diff --git a/node_modules/expo-dev-launcher/android/src/main/java/expo/modules/devlauncher/launcher/manifest/DevLauncherManifestParser.kt b/node_modules/expo-dev-launcher/android/src/main/java/expo/modules/devlauncher/launcher/manifest/DevLauncherManifestParser.kt
index 714891a..7b0835d 100644
--- a/node_modules/expo-dev-launcher/android/src/main/java/expo/modules/devlauncher/launcher/manifest/DevLauncherManifestParser.kt
+++ b/node_modules/expo-dev-launcher/android/src/main/java/expo/modules/devlauncher/launcher/manifest/DevLauncherManifestParser.kt
@@ -42,7 +42,7 @@ class DevLauncherManifestParser(
   private fun getHeaders(): Headers {
     val headersMap = mutableMapOf(
       "expo-platform" to "android",
-      "accept" to "application/expo+json,application/json"
+      "accept" to "application/expo+json,application/json,multipart/mixed"
     )
     if (installationID != null) {
       headersMap["expo-dev-client-id"] = installationID

which in turn lead to another error:

My current theory is that during upgrade to SDK51 we somehow have not properly updated some internal dependencies of expo-dev-launcher? Any tips would help at this point :)

from expo.

romanonthego avatar romanonthego commented on May 29, 2024

hi there! can you share a link to the full update url to [email protected]? thanks

will do

from expo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.