-
Bug
-
Resolution: Fixed
-
Major
-
None
The method checkApiUrlValidity() does not work fine when a GitHub Enterprise instance is configured in private mode.
When I've added this method in GitHub API forget to check with this configuration:
public void checkApiUrlValidity() throws IOException { retrieve().to("/", GHApiInfo.class).check(apiUrl); }
Probably, we need to do changes in this plugin (to handle the error) and in GitHub API.
- is related to
-
JENKINS-33228 GitHub server configuration undocumented / duplicated
-
- Open
-
- links to
This seems to be what I'm talking about here and here.
For info, from my GitHub Enterprise instance:
The 401 response throws an IOException, which the plugin turns into a generic error message.
This is also why the GitHub Plugin's UI, where I can enter credentials and click the "Verify credentials" is way more user-friendly