mapbox / mapbox/mapbox-navigation-android

Received status code 403 from server: Request blocked by Privoxy

Open
#5,284 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

archived
Dominant language
Kotlin
Stars
651
Forks
321
PR merge metrics
No merged PRs in 30d

Description

Hi team,

My gradle build is failing to sync with the following dependencies:

**build.gradle**

```
allprojects {
repositories {
google()
mavenCentral()
jcenter { url "http://jcenter.bintray.com/" }
maven { url "http://jitpack.io/" }
maven { url "https://maven.google.com" }
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://mapbox.bintray.com/mapbox' }
flatDir {
dirs '/libs'
}
maven {
url 'https://api.mapbox.com/downloads/v2/releases/maven'
authentication {
basic(BasicAuthentication)
}
credentials {
// Do not change the username below.
// This should always be `mapbox` (not your username).
username = "mapbox"
// Use the secret token you stored in gradle.properties as the password
password = "MAPBOX_DOWNLOADS_TOKEN"
}
}
}
}
```

**dependencies**
```
implementation('com.mapbox.mapboxsdk:mapbox-android-sdk:8.2.1') {
transitive = true
}
implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.40.0'
implementation ('com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.40.0') {
transitive = true
}
```

**Error**

```
FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not resolve com.mapbox.navigator:mapbox-navigation-native:6.2.1.
Required by:
project :app > com.mapbox.mapboxsdk:mapbox-android-navigation:0.40.0
> Skipped due to earlier error
> Could not resolve com.mapbox.navigator:mapbox-navigation-native:6.2.1.
> Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigator/mapbox-navigation-native/6.2.1/mapbox-navigation-native-6.2.1.pom'.
> Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigator/mapbox-navigation-native/6.2.1/mapbox-navigation-native-6.2.1.pom'. Received status code 403 from server: Request blocked by Privoxy
```

even placed the secret key in **gradle.properties** but could find how to resolve this issue. kindly help us to resolve

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the repository declarations and Mapbox dependency credentials in build.gradle, then inspect gradle.properties and the failing Maven URL for the mapbox-navigation-native 6.2.1 request. Re-run the Gradle sync and confirm that the dependency resolves without the 403 Privoxy error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.