java.lang.Error

org.gitlab.api.GitlabAPIException: {"message":"401 Unauthorized"}

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web33

  • via GitHub by LeOSW42
    , 10 months ago
    org.gitlab.api.GitlabAPIException: {"message":"401 Unauthorized"}
  • via GitHub by eddumelendez
    , 11 months ago
    java.io.IOException: {"message":"401 Unauthorized"}
  • java.io.IOException: {"message":"401 Unauthorized"}
  • Stack trace

    • java.lang.Error: org.gitlab.api.GitlabAPIException: {"message":"401 Unauthorized"} at org.gitlab.api.http.GitlabHTTPRequestor$1.fetch(GitlabHTTPRequestor.java:239)[java-gitlab-api-1.2.3.jar:?] at org.gitlab.api.http.GitlabHTTPRequestor$1.hasNext(GitlabHTTPRequestor.java:193)[java-gitlab-api-1.2.3.jar:?] at org.gitlab.api.http.GitlabHTTPRequestor.getAll(GitlabHTTPRequestor.java:161)[java-gitlab-api-1.2.3.jar:?] at org.gitlab.api.GitlabAPI.getAllProjects(GitlabAPI.java:586)[java-gitlab-api-1.2.3.jar:?] at svnserver.ext.gitlab.mapping.GitLabMappingConfig.create(GitLabMappingConfig.java:76)[git-as-svn.jar:?] at svnserver.server.SvnServer.<init>(SvnServer.java:113)[git-as-svn.jar:?] at svnserver.server.Main.main(Main.java:48)[git-as-svn.jar:?] Caused by: org.gitlab.api.GitlabAPIException: {"message":"401 Unauthorized"} at org.gitlab.api.http.GitlabHTTPRequestor.handleAPIError(GitlabHTTPRequestor.java:369)[java-gitlab-api-1.2.3.jar:?] at org.gitlab.api.http.GitlabHTTPRequestor.access$300(GitlabHTTPRequestor.java:28)[java-gitlab-api-1.2.3.jar:?] at org.gitlab.api.http.GitlabHTTPRequestor$1.fetch(GitlabHTTPRequestor.java:236)[java-gitlab-api-1.2.3.jar:?] ... 6 more Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: http://xxx.com/api/v3/projects/all at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)[?:1.8.0_102] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)[?:1.8.0_102] at org.gitlab.api.http.GitlabHTTPRequestor.parse(GitlabHTTPRequestor.java:324)[java-gitlab-api-1.2.3.jar:?] at org.gitlab.api.http.GitlabHTTPRequestor.access$200(GitlabHTTPRequestor.java:28)[java-gitlab-api-1.2.3.jar:?] at org.gitlab.api.http.GitlabHTTPRequestor$1.fetch(GitlabHTTPRequestor.java:232)[java-gitlab-api-1.2.3.jar:?] ... 6 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    10 times, 1 month ago
    Unknown user
    2 times, 10 months ago
    Unknown user
    Once, 10 months ago
    2 times, 11 months ago
    Unknown user
    Once, 1 year ago
    96 more bugmates