Gradle build failed with 401 Unauthorized

See original GitHub issue

Describe the bug Gradle build failed with 401 Unauthorized

To Reproduce Just run gradlew build from root. I am on windows and aligned to main.

Short error description: Could not HEAD ‘https://repo.spring.io/plugins-snapshot/com/fasterxml/jackson/core/jackson-databind/2.11.4/jackson-databind-2.11.4.pom’. Received status code 401 from server: Unauthorized

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
khaelyscommented, Jun 25, 2021

Thanks @bschoenmaeckers.

I’m going to close this as I believe this is related to the infrastructure changes on our end that caused an intermittent problem and/or it’s related to the user’s environment.

You are right

Deleting the .gradle folder in my home directory fixed the problem.

Solved my problem too

1reaction
eiswindcommented, Jun 25, 2021

Thx. this helped!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle build failed with 401 Unauthorized · Issue #311 - GitHub
Just run gradlew build from root. I am on windows and aligned to main. Short error description: Could not HEAD 'https://repo.spring.io/plugins- ...
Read more >
Unauthorized (401) for Azure Artifacts feed via Gradle
Hi. I am getting Unauthorized (401) error while trying to access Azure Artifacts via gradle. When we are trying to use them to...
Read more >
Authenticated custom gradle wrapper ... - JetBrains YouTrack
When running a build from the command line, the wrapper is able to authenticate, download, and build successfully. After it is cached, the...
Read more >
[OSSRH-65177] [Errors} 401 Unauthorized error (gradle w
When uploading artifacts via Gradle and Maven the response is always a 401 unauthorized. i.e.. Caused by: org.gradle.internal.resource.transport ...
Read more >
Gradle unable to properly authenticate against Artifactory
TL;DR; I'm getting sporadic 401/403 responses from Artifactory when ... The issue is that the build fails with a 403 from Artifactory when ......
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