Errors after Integrating JIRA 7.2 and GIT 9.0 using Jigit

Issue #30 wontfix
Former user created an issue

Dear Support,

We have recently upgraded our GIT server from Version 7.1 to 9.0 as per the documentation and integration works fine. But we are getting some errors in the JIRA log file. We created an Atlassian support request but they have forwarded us to contact you for these errors.

Can you please review the following errors in the log file and let us know how can these be fixed?

2018-03-06 09:31:40,469 Caesium-1-1 ERROR ServiceRunner [jigit.indexer.JigitIndexer] JigitIndexer::execute api.APIException: {"message":"401 Unauthorized"} at api.client.http.ApiHttpRequester.handleError(ApiHttpRequester.java:117) at api.client.http.ApiHttpRequester.parse(ApiHttpRequester.java:96) at api.client.http.ApiHttpRequester.withResultOf(ApiHttpRequester.java:66) at api.client.http.ApiHttpRequester.withResultOf(ApiHttpRequester.java:58) at jigit.client.gitlab.GitLabRepositoryAPI.branches(GitLabRepositoryAPI.java:58) at jigit.indexer.api.gitlab.GitLabAPIAdapter.branches(GitLabAPIAdapter.java:70) at jigit.indexer.branch.BranchesApiCall.branches(BranchesApiCall.java:23) at jigit.indexer.repository.RepoInfoDirectProxy.<init>(RepoInfoDirectProxy.java:20) at jigit.indexer.repository.RepoType$1.repositories(RepoType.java:25) at jigit.indexer.repository.RepoInfoFactoryImpl.getGitlabAPIAdapter(RepoInfoFactoryImpl.java:51) at jigit.indexer.repository.RepoInfoFactoryImpl.build(RepoInfoFactoryImpl.java:41) at jigit.indexer.IndexingWorkerFactoryImpl.build(IndexingWorkerFactoryImpl.java:46) at jigit.indexer.JigitIndexer.execute(JigitIndexer.java:39) ... Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: http://gitsandbox.primaticsfinancial.com/api/v3/projects/private%2FEvolv/repository/branches at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) at api.client.http.ApiHttpRequester.parse(ApiHttpRequester.java:93)

Comments (4)

  1. Dmitrii Apanasevich repo owner

    Hi,

    {"message":"401 Unauthorized"}

    This is what your GitLab returns on each API call.

    I think, you have to create new GitLab access token (or tokens, it depends on your use case) and specify it (them) for each Jigit repository at the config page using Edit button.

  2. Dmitrii Apanasevich repo owner

    This issue doesn't need any fix, so, I've closed it. But we can continue discussion in comments.

    Feel free to ask questions.

  3. Log in to comment