Skip to content
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

Expo managed flow - android build 403 error (locally) #3603

Open
dandrykevych opened this issue Aug 31, 2024 · 4 comments
Open

Expo managed flow - android build 403 error (locally) #3603

dandrykevych opened this issue Aug 31, 2024 · 4 comments

Comments

@dandrykevych
Copy link

Hey guys, I would like to create/test builds locally before CI and stuck with android for a bit. CI works fine for android/ios, locally I can build for ios only atm. Appreciate any help or advice.

The same opened issue for flutter I saw: mapbox/mapbox-maps-flutter#580

Environment

  • Dev OS: OSX 14.6
  • @rnmapbox/maps version: ^10.1.30 (tried with 10.1.27, 10.1.28, 10.1.29 also)
  • React Native version: 0.74.5
  • Expo version: 51.0.28

Steps to reproduce

npx create-expo-app newApp --template blank
cd newApp
expo install @rnmapbox/maps

> add plugin to the app.json

"plugins": [
      [
        "@rnmapbox/maps",
        {
          "RNMapboxMapsDownloadToken": "TOKEN" // selected every checkbox when generated this token just to be sure
        }
      ]
    ]

eas build --platform android --local

I can confirm that issue is not a token since IOS build is successfull and the app working fine but not for android.
However I still get token related error I assume:

[RUN_GRADLEW] FAILURE: Build failed with an exception.
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] Could not determine the dependencies of task ':app:buildReleasePreBundle'.
[RUN_GRADLEW] > Could not resolve all dependencies for configuration ':app:releaseRuntimeClasspath'.
[RUN_GRADLEW]    > Could not resolve com.mapbox.maps:android:10.16.2.
[RUN_GRADLEW]      Required by:
[RUN_GRADLEW]          project :app > project :rnmapbox_maps
[RUN_GRADLEW]       > Could not resolve com.mapbox.maps:android:10.16.2.
[RUN_GRADLEW]          > Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/maps/android/10.16.2/android-10.16.2.pom'.
[RUN_GRADLEW]             > Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/maps/android/10.16.2/android-10.16.2.pom'. Received status code 403 from server: Forbidden
[RUN_GRADLEW]    > Could not resolve com.mapbox.mapboxsdk:mapbox-sdk-turf:6.11.0.
[RUN_GRADLEW]      Required by:
[RUN_GRADLEW]          project :app > project :rnmapbox_maps
[RUN_GRADLEW]       > Could not resolve com.mapbox.mapboxsdk:mapbox-sdk-turf:6.11.0.
[RUN_GRADLEW]          > Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom'.
[RUN_GRADLEW]             > Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/mapboxsdk/mapbox-sdk-turf/6.11.0/mapbox-sdk-turf-6.11.0.pom'. Received status code 403 from server: Forbidden
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] > Get more help at https://help.gradle.org.
[RUN_GRADLEW] BUILD FAILED in 21s
[RUN_GRADLEW] 10 actionable tasks: 10 executed
[RUN_GRADLEW] Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
@priyanshusaini105
Copy link

I also getting error while installing

@Nitrammets
Copy link

Nitrammets commented Sep 2, 2024

Same problem, but can't even build in CI

@mfazekas
Copy link
Contributor

403 sounds like a token issue. You can check the eas generated project grade files to see if the token is correct in them

@Xx-Parks-xX
Copy link

Xx-Parks-xX commented Sep 13, 2024

I had same problem, 403 forbidden. I tried with private one and it was ok.
I used a full scope token so I don't know witch scope is sufficient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants