jitpack.io icon indicating copy to clipboard operation
jitpack.io copied to clipboard

401 from public repository

Open BWMuller opened this issue 5 years ago • 34 comments

Getting a 401 unauthorised error on a public repo. This is not isolated to just this one repo as it happens with a few others as well

Could not determine the dependencies of task ':app:compileStagingReleaseJavaWithJavac'.
> Could not resolve all dependencies for configuration ':app:stagingReleaseRuntimeClasspath'.
   > Could not determine artifacts for com.github.BWMuller.EasyGallery:easygallery-core:0.0.3
      > Could not get resource 'https://jitpack.io/com/github/BWMuller/EasyGallery/easygallery-core/0.0.3/easygallery-core-0.0.3.aar'.
         > Could not HEAD 'https://jitpack.io/com/github/BWMuller/EasyGallery/easygallery-core/0.0.3/easygallery-core-0.0.3.aar'. Received status code 401 from server: Unauthorized

BWMuller avatar Oct 31 '19 11:10 BWMuller

Same issue with another public repo:

Cached resource https://www.jitpack.io/com/github/AlexTrotsenko/RxActivityResult/newExplicitIntent-SNAPSHOT/maven-metadata.xml is up-to-date (lastModified: Mon Oct 21 13:49:47 CEST 2019).
Cached resource https://www.jitpack.io/com/github/AlexTrotsenko/RxActivityResult/newExplicitIntent-SNAPSHOT/RxActivityResult-newExplicitIntent-087ed305fd-1.pom is up-to-date (lastModified: Mon Oct 21 13:49:47 CEST 2019).
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:preFullDebugBuild'.
> Could not resolve all task dependencies for configuration ':app:fullDebugRuntimeClasspath'.
   > Could not resolve com.github.AlexTrotsenko:RxActivityResult:newExplicitIntent-SNAPSHOT.
     Required by:
         project :app > project :common
      > Could not resolve com.github.AlexTrotsenko:RxActivityResult:newExplicitIntent-SNAPSHOT.
         > Unable to load Maven meta-data from https://www.jitpack.io/com/github/AlexTrotsenko/RxActivityResult/newExplicitIntent-SNAPSHOT/maven-metadata.xml.
            > Could not HEAD 'https://www.jitpack.io/com/github/AlexTrotsenko/RxActivityResult/newExplicitIntent-SNAPSHOT/maven-metadata.xml'. Received status code 401 from server: Unauthorized

* Try:
Run with --debug option to get more log output. Run with --scan to get full insights.

* Exception is:
org.gradle.api.internal.tasks.TaskDependencyResolveException: Could not determine the dependencies of task ':app:preFullDebugBuild'.
	at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.getDependencies(CachingTaskDependencyResolveContext.java:66)
...
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all task dependencies for configuration ':app:fullDebugRuntimeClasspath'.
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.rethrowFailure(DefaultConfiguration.java:1054)
...
	at org.gradle.api.internal.tasks.CachingTaskDependencyResolveContext.getDependencies(CachingTaskDependencyResolveContext.java:64)
	... 90 more
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.github.AlexTrotsenko:RxActivityResult:newExplicitIntent-SNAPSHOT.
Required by:
    project :app > project :common

@jitpack-io any ideas what is the root of the problem or how to work-around it meanwhile?

AlexTrotsenko avatar Oct 31 '19 14:10 AlexTrotsenko

Seems the same as been at #3759

stanma avatar Oct 31 '19 14:10 stanma

@stanma true it is the same but that was meant to have been fixed in March then already.

BWMuller avatar Nov 01 '19 13:11 BWMuller

I'm seeing the same thing over in https://github.com/jitpack/jitpack.io/issues/4042

leif81 avatar Nov 01 '19 17:11 leif81

the same issue just happened

  > Could not resolve com.google.protobuf:protobuf-java:2.6.1.
     > Could not parse POM https://jcenter.bintray.com/com/google/protobuf/protobuf-java/2.6.1/protobuf-java-2.6.1.pom
        > Could not download google.pom (com.google:google:1)
           > Could not get resource 'http://maven.apiusage.com/repository/maven-public/com/google/google/1/google-1.pom'.
              > Could not HEAD 'http://maven.apiusage.com/repository/maven-public/com/google/google/1/google-1.pom'. Received status code 401 from server: Unauthorized
  > Could not resolve com.google.protobuf:protobuf-java:2.6.1.
     > Could not parse POM https://jcenter.bintray.com/com/google/protobuf/protobuf-java/2.6.1/protobuf-java-2.6.1.pom
        > Could not download google.pom (com.google:google:1)
           > Could not get resource 'http://maven.apiusage.com/repository/maven-public/com/google/google/1/google-1.pom'.
              > Could not HEAD 'http://maven.apiusage.com/repository/maven-public/com/google/google/1/google-1.pom'. Received status code 401 from server: Unauthorized
  > Could not resolve com.google.protobuf:protobuf-java:2.6.1.
     > Could not parse POM https://jcenter.bintray.com/com/google/protobuf/protobuf-java/2.6.1/protobuf-java-2.6.1.pom
        > Could not download google.pom (com.google:google:1)
           > Could not get resource 'http://maven.apiusage.com/repository/maven-public/com/google/google/1/google-1.pom'.
              > Could not HEAD 'http://maven.apiusage.com/repository/maven-public/com/google/google/1/google-1.pom'. Received status code 401 from server: Unauthorized
  > Could not resolve com.google.protobuf:protobuf-java:2.6.1.
     > Could not parse POM https://jcenter.bintray.com/com/google/protobuf/protobuf-java/2.6.1/protobuf-java-2.6.1.pom
        > Could not download google.pom (com.google:google:1)
           > Could not get resource 'http://maven.apiusage.com/repository/maven-public/com/google/google/1/google-1.pom'.
              > Could not HEAD 'http://maven.apiusage.com/repository/maven-public/com/google/google/1/google-1.pom'. Received status code 401 from server: Unauthorized

dongluyang avatar Nov 03 '19 11:11 dongluyang

I am having the same issue on my public repo, even though I can download the files through my browser Gradle will fail at the unauthorized message.

I am trying to access 'https://jitpack.io/com/github/guthix/Jagex-ByteBuf/ff61704caa/Jagex-ByteBuf-ff61704caa.jar' on gradle version 5.6.4.

BartvHelvert avatar Nov 04 '19 09:11 BartvHelvert

The same issue with my repo

TrueDevProfile avatar Nov 04 '19 11:11 TrueDevProfile

ping @jitpack-io -- please have a look

nre-ableton avatar Nov 05 '19 09:11 nre-ableton

I am having the same issue on my public repo, even though I can download the files through my browser Gradle will fail at the unauthorized message.

I am trying to access 'https://jitpack.io/com/github/guthix/Jagex-ByteBuf/ff61704caa/Jagex-ByteBuf-ff61704caa.jar' on gradle version 5.6.4.

FWIW, that is not the case for me. Our public artifacts return 401, both from gradle and a web browser, and both for jitpack.io and www.jitpack.io.

nre-ableton avatar Nov 05 '19 09:11 nre-ableton

Hi all,

There was an issue connecting to GitHub at the time which made JitPack assume it was a private repository.

jitpack-io avatar Nov 13 '19 17:11 jitpack-io

@jitpack-io seems this happened again?:

* What went wrong:
Could not determine the dependencies of task ':android:kaptForFDroidDebugKotlin'.
> Could not resolve all task dependencies for configuration ':android:kapt'.
   > Could not resolve com.github.hotchemi:permissionsdispatcher-processor:4.6.0.
     Required by:
         project :android
      > Could not resolve com.github.hotchemi:permissionsdispatcher-processor:4.6.0.
         > Could not get resource 'https://jitpack.io/com/github/hotchemi/permissionsdispatcher-processor/4.6.0/permissionsdispatcher-processor-4.6.0.pom'.
            > Could not GET 'https://jitpack.io/com/github/hotchemi/permissionsdispatcher-processor/4.6.0/permissionsdispatcher-processor-4.6.0.pom'. Received status code 401 from server: Unauthorized

ligi avatar Feb 22 '20 18:02 ligi

@jitpack-io This is happening for me as well on a public repo

org.gradle.api.resources.ResourceException: Could not get resource 'https://jitpack.io/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.pom'. 
org.gradle.internal.resource.transport.http.HttpErrorStatusCodeException: Could not GET 'https://jitpack.io/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.pom'. Received status code 401 from server: Unauthorized |  
org.gradle.api.resources.ResourceException: Could not get resource 'https://jitpack.io/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.pom'. |  
org.gradle.internal.resource.transport.http.HttpErrorStatusCodeException: Could not GET 'https://jitpack.io/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.pom'. Received status code 401 from server: Unauthorized |  

brandikun avatar Feb 25 '20 03:02 brandikun

This still occurs after one year.

[   +1 ms] > Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
[   +9 ms]    > Could not resolve com.github.phanirithvij:bubbles:1.2.1.
[   +2 ms]      Required by:
[   +2 ms]          project :app
[   +6 ms]       > Could not resolve com.github.phanirithvij:bubbles:1.2.1.
[   +1 ms]          > Could not get resource 'https://jitpack.io/com/github/phanirithvij/bubbles/1.2.1/bubbles-1.2.1.pom'.
[   +3 ms]             > Could not GET 'https://jitpack.io/com/github/phanirithvij/bubbles/1.2.1/bubbles-1.2.1.pom'. Received status code 401 from server: Unauthorized
[   +2 ms] * Try:

phanirithvij avatar Jul 29 '20 13:07 phanirithvij

@jitpack-io This is happening for me as well on a public repo

org.gradle.api.resources.ResourceException: Could not get resource 'https://jitpack.io/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.pom'. 
org.gradle.internal.resource.transport.http.HttpErrorStatusCodeException: Could not GET 'https://jitpack.io/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.pom'. Received status code 401 from server: Unauthorized |  
org.gradle.api.resources.ResourceException: Could not get resource 'https://jitpack.io/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.pom'. |  
org.gradle.internal.resource.transport.http.HttpErrorStatusCodeException: Could not GET 'https://jitpack.io/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.pom'. Received status code 401 from server: Unauthorized |  

me too

fanzhiri avatar Jan 20 '21 03:01 fanzhiri

I am also seeing this issue on a public repo.

jimblackler avatar Apr 02 '21 10:04 jimblackler

I have the same issue

bidadh avatar Apr 23 '21 03:04 bidadh

I have the same issue

Vlad-M-1 avatar May 13 '21 18:05 Vlad-M-1

I'm seeing this currently with https://jitpack.io/#CanHub/Android-Image-Cropper e.g. https://jitpack.io/com/github/Canato/Android-Image-Cropper/3.0.0/Android-Image-Cropper-3.0.0.pom asks me for username and password, despite this being a public repo.

chriscoomber avatar May 21 '21 13:05 chriscoomber

any updates on this issue ?

bidadh avatar May 24 '21 08:05 bidadh

such a bad support! Started getting 401 and 403 errors which stops me doing my job and even subscription didn't help! what am I supposed to do ?

bidadh avatar May 24 '21 09:05 bidadh

Still getting the same problem:

Could not GET 'https://jitpack.io/com/github/stealthcopter/AndroidNetworkTolls/0.4.5.3/AndroidNetworkTolls-0.4.5.3.pom'. Received status code 401 from server: Unauthorized

jahnical avatar Aug 03 '21 08:08 jahnical

same here for me when trying to resolve this from gradle 7.1.1:

      > Could not resolve com.github.breskeby:rewrite-rules:1.0.
         > Could not get resource 'https://jitpack.io/com/github/breskeby/rewrite-rules/1.0/rewrite-rules-1.0.pom'.
            > Could not GET 'https://jitpack.io/com/github/breskeby/rewrite-rules/1.0/rewrite-rules-1.0.pom'. Received status code 401 from server: Unau

breskeby avatar Aug 13 '21 13:08 breskeby

I am also getting the same issue.

Could not HEAD 'https://jitpack.io/com/github/RewardzSG/RewardsSdk/v1.3/RewardsSdk-v1.3.pom'. Received status code 401 from server: Unauthorized Disable Gradle 'offline mode' and sync project

Is there something I can do to resolve this.

RewardzSG avatar Aug 18 '21 15:08 RewardzSG

any update?

summer-zhoujie avatar Aug 24 '21 06:08 summer-zhoujie

Same issue for repository https://jitpack.io/com/github/inappstory/android-sdk/c6fb29dc137ee555b7cc9168c8c4cef79cb79660/android-sdk-c6fb29dc137ee555b7cc9168c8c4cef79cb79660.pom

paperrose avatar Aug 27 '21 10:08 paperrose

any updates?

chgsilva avatar Aug 27 '21 20:08 chgsilva

Any updates ?

Facing the same issue on repository: Could not GET 'https://jitpack.io/com/github/shuftipro/Shuftipro-Verification/1.3.1/Shuftipro-Verification-1.3.1.pom'. Received status code 401 from server: Unauthorized

@jitpack-io : Please take a look.

aakash-jain-sopra avatar Nov 18 '21 10:11 aakash-jain-sopra

Please check the same error, repo is public

Could not GET 'https://jitpack.io/com/github/icebergteam/mupdf-android-viewer/1.19.1/mupdf-android-viewer-1.19.1.pom'. Received status code 401 from server: Unauthorized

or

Could not HEAD 'https://www.jitpack.io/com/github/icebergteam/mupdf-android-viewer/1.19.1/mupdf-android-viewer-1.19.1.pom'. Received status code 401 from server: Unauthorized

@jitpack-io : Please take a look.

daimonkor avatar Dec 01 '21 10:12 daimonkor

How to resove this problem? now a day is 2022

dazjean avatar Jan 08 '22 08:01 dazjean

Hi @daimonkor That project has a submodule pointing to a private repository https://github.com/icebergteam/mupdf-android-viewer/blob/master/.gitmodules As a result JitPack can't clone it and returns 401.

jitpack-io avatar Jan 26 '22 19:01 jitpack-io