-
Notifications
You must be signed in to change notification settings - Fork 730
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
Getting timeout while connecting to Github API #1926
Comments
Jenkins GitHub plugin should be using |
@bitwiseman I am on Jenkins 2.468 and Github plugin 1.40.0 and on Java 7 (JDK 17.0.5) .. Is there any compatibility issue in this? |
@bitwiseman I downgraded Github plugin version to 1.34. Still the same issue persists. Appreciate any advise on this. |
@Mohazinkhan What you're seeing is a continuation of #539 and #433 . The library has attempted multiple times to deal with this and things have improved. But the real solution is to not use In the upcoming v2.0 release, we'll be removing |
@bitwiseman Thanks for responding. Hmm, I tried every possible thing at my disposal to get rid of this issue, but I just could not. Apart from plugins github, github-api and github-branch-release, is there any other plugin that would be invoking HttpURLConnection? Also, can you please give some expected timeline on when is this v2.0 release planned? |
@bitwiseman Also, below is the piece of code I am executing to fetch the list of organization repositories using github API,
|
@Mohazinkhan Change your code as follows:
|
@bitwiseman oh yes, custom code in Jenkins DSL. |
@bitwiseman I added the Gradle dependency for okhttp as follows, |
@Mohazinkhan
|
Hi @bitwiseman This is the current error after updating with the recent code you provided.
|
@bitwiseman
|
I'm sorry, I can't help you with that. Unexpected channel closing isn't a failure in this library. Maybe your network is having issues? When you figure out a solution please report back. |
I have configured a Github App for Jenkins and I am running a Global seed job which would connect to the Github API and retrieve all the repositories in the Organization. Whenever it tries to authenticate to the Github API and retrieve the list of repositories it fails with timeout and the following error is displayed,
The text was updated successfully, but these errors were encountered: