Skip to content

Why am I seeing server returned HTTP response code: 401/403 error?

Why am I seeing server returned HTTP response code: 401/403 error?

  1. Make sure you (or the generic ID) belongs to one of the groups in Jfrog application. This is one of the first step in migration process.
    • For Generic ID: Make sure you're in "ENTP-GITHUB-FORD-*" groups, if not, Access for Generic (Proxy) ID. To check if your generic ID already belong to the group, search in IAM.
  2. Check to see if you can download an artifact from Jfrog with your credentials.
    • curl -H "Authorization: Bearer <TOKEN>" "url-to-artifacts-file"
    curl -H "Authorization: Bearer <TOKEN>" "https://jfrog.ford.com/artifactory/external-proxy-group/org/hibernate/hibernate-validator-parent/5.0.3.Final/hibernate-validator-parent-5.0.3.Final.pom"
  3. For IntelliJ specific 401 error like below:
    Server returned HTTP response code: 401 for URL: https://jfrog.ford.com/artifactory/gradle-distributions/gradle-8.7-bin.zip
    • From IntelliJ IDE, Navigate to Help -> Edit Custom VM options, insert the following:
    -Dgradle.wrapperUser=<CDSID>@ford.com
    -Dgradle.wrapperPassword=<TOKEN>
    • Restart the IDE and run.
  4. Check to see if your dependencies/library is being blocked by Jfrog curation.
  5. For additional common errors, please see Jfrog Common Gradle/Maven Errors

Brought to you by DevTools and Enablement Team.