Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count not connect to jitpack for OneSignal Plugin #3983

Closed
kareemzok opened this issue Sep 20, 2019 · 7 comments
Closed

Count not connect to jitpack for OneSignal Plugin #3983

kareemzok opened this issue Sep 20, 2019 · 7 comments

Comments

@kareemzok
Copy link

Hello,

Suddenly I m getting the following error

ERROR: Could not GET 'https://jitpack.io/gradle/plugin/com/onesignal/onesignal-gradle-plugin/'. Received status code 522 from server: Origin Connection Time-out

Also when I m trying to enter https://jitpack.io/gradle/plugin/com/onesignal/onesignal-gradle-plugin/ I m getting the following:

Connection
There seems to be an issue connecting to our servers. Please try again in a few minutes.

Any advice, please

@okwast
Copy link

okwast commented Sep 20, 2019

Having the same issue with https://jitpack.io/javax/inject/javax.inject/1/javax.inject-1.jar since 20 minutes or so.

Maybe there are some server issues?

At least they say this:
Screen Shot 2019-09-20 at 15 09 16

@kareemzok
Copy link
Author

Yes exactly, I m getting the same.
What should we do? it happened yesterday and im unable to work since then

@okwast
Copy link

okwast commented Sep 20, 2019

Not sure if it helps, but I "solved" our issue by changing the order in the build.gradle, so the package is used from maven instead of jitpack.

Another approach would be to add www. to the url of jitpack. That solved a problem we had with another package.

Hope something helps.

@kareemzok
Copy link
Author

Thanks for your reply. I lll try that and let you know but i think the order solution tried it before and didnt work with me but i ll recheck again.
Also OneSignal team told me to open issue on their github account. So i ll try that also.

Concerning the order you mean change the calling position right ?

@okwast
Copy link

okwast commented Sep 20, 2019

Yep, inside the build.gradle inside repositories do the call to add jitpack in the end.

The solution helped because the broken package from jitpack was also available on maven repo.
Therefore changing the order caused the process to check on maven repo first and as it is found there, there is no need to go to the broken jitpack.

Maybe you can remove jitpack altogether.

@kareemzok
Copy link
Author

Thanks for your help i ll try it tomorow and let you know if its resolved

@kareemzok
Copy link
Author

kareemzok commented Sep 23, 2019

Hello @okwast, Your solution when adding the www. works. Thanks a lot for your help!

lifenautjoe added a commit to lifenautjoe/flutter_image_cropper that referenced this issue Oct 12, 2019
Jitpack sometimes times out when trying to resolve packages with `https://jitpack.io` instead of `https://www.jitpack.io`.

We are experiencing this issue with the `flutter_image_cropper` package trying to resolve the ucrop package

```
from server: Origin Connection Time-out
   > Could not resolve com.github.yalantis:ucrop:2.2.4.
     Required by:
         project :app > project :image_cropper
```

Please see
OneSignal/OneSignal-Android-SDK#843 and jitpack/jitpack.io#3983 for similar issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants