jitpack / jitpack.io

Documentation and issues of https://jitpack.io
MIT License
2.54k stars 186 forks source link

Origin Connection Time-out #3973

Closed ligi closed 2 years ago

ligi commented 5 years ago

I am currently having builds fail like this:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:lint'.
> Could not resolve all artifacts for configuration ':app:withGethForFDroidOnlineReleaseRuntimeClasspath'.
   > Could not resolve androidx.appcompat:appcompat:1.1.0.
     Required by:
         project :app
         project :app > com.github.ligi.tracedroid:supportemail:3.0
         project :app > com.github.ligi:KAXTUI:1.0
         project :app > com.github.ligi:thirdpartylicensedisplay:1.0
         project :app > com.github.madrapps:pikolo:2.0.1
         project :app > org.koin:koin-androidx-viewmodel:2.0.1 > org.koin:koin-androidx-scope:2.0.1
      > Could not resolve androidx.appcompat:appcompat:1.1.0.
         > Could not get resource 'https://jitpack.io/androidx/appcompat/appcompat/1.1.0/appcompat-1.1.0.aar'.
            > Could not HEAD 'https://jitpack.io/androidx/appcompat/appcompat/1.1.0/appcompat-1.1.0.aar'. Received status code 522 from server: Origin Connection Time-out
   > Could not resolve androidx.appcompat:appcompat:1.1.0.
     Required by:
         project :app > com.google.android.material:material:1.0.0
      > Could not resolve androidx.appcompat:appcompat:1.1.0.
         > Could not get resource 'https://jitpack.io/androidx/appcompat/appcompat/1.1.0/appcompat-1.1.0.aar'.
            > Could not HEAD 'https://jitpack.io/androidx/appcompat/appcompat/1.1.0/appcompat-1.1.0.aar'. Received status code 522 from server: Origin Connection Time-out
   > Could not resolve androidx.appcompat:appcompat:1.1.0.
     Required by:
         project :app > androidx.preference:preference:1.1.0
      > Could not resolve androidx.appcompat:appcompat:1.1.0.
         > Could not get resource 'https://jitpack.io/androidx/appcompat/appcompat/1.1.0/appcompat-1.1.0.aar'.
            > Could not HEAD 'https://jitpack.io/androidx/appcompat/appcompat/1.1.0/appcompat-1.1.0.aar'. Received status code 522 from server: Origin Connection Time-out

these artifacts should not come via jitpack - and IMHO jitpack should return a 404 there

berchoes commented 2 years ago

@oliverspryn same here :( any updates?

devpolo commented 2 years ago

Looks like removing the www in your build.gradle can also be a workaround..

- maven { url 'https://www.jitpack.io' }
+ maven { url 'https://jitpack.io' }
github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.

AndroidJiang commented 2 years ago

Uninstall Android Studio fullly and reinstall

rohith-thummanapally commented 2 years ago

hi i am also having same issue.....but i am on expo eas setup....i won't have build.gradle file....what should i do to make it work?

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 years ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

oliverspryn commented 2 years ago

@oliverspryn same here :( any updates?

Yep @berchoes . I've pretty much left Jitpack altogether. I use Maven Central for all dependencies that I can, and if I need a library that is only hosted on Jitpack, I proxy it through Artifactory. That way, my dependencies always come via Artifactory and it is a much more reliable mirror.

ArleyPereira commented 1 year ago

problem happening today

Jitpack.io off https://prnt.sc/08t1tlmX3VX6

build.gradle(Project) https://prnt.sc/ec-gUzBk0HZM

build.gradle(Module) https://prnt.sc/Y4uUjacOSVz1

settings.gradle(Project) https://prnt.sc/MEUNV3Ukz3iB

Problem https://prnt.sc/gzJ4WoUBHaN6

sam-devstudio commented 3 months ago

Its 2024 and I am still facing this issue on Android Studio Koala, www workaround also not working

imsankalp commented 1 month ago

I am also facing this issue. Can anyone please check this?

smirza-pie commented 1 month ago

I am also facing this issue. Can anyone please check this?

@imsankalp try adding jcenter under the project level gradle file. If still not work than try using migrated version of the required dependencies & if library does not have a migrated version then you have to look for other options like adding via code or add as aar file