org.springframework.web.client.HttpClientErrorException: 401 Unauthorized

GitHub | smsuresh | 2 weeks ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 1162#279324608

    GitHub | 2 weeks ago | smsuresh
    org.springframework.web.client.HttpClientErrorException: 401 Unauthorized
  2. 0

    Not able to fetch commit

    GitHub | 2 months ago | abhishekvats007
    org.springframework.web.client.HttpClientErrorException: 404 Not Found
  3. 0

    GitHub comment 1073#271332227

    GitHub | 2 months ago | zenglincui
    org.springframework.web.client.HttpClientErrorException: 404 Not Found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Failed to obtain commits 404 Not Found issue for Bitbucket collector

    GitHub | 2 months ago | zenglincui
    org.springframework.web.client.HttpClientErrorException: 404 Not Found
  6. 0

    GitHub comment 1086#272050320

    GitHub | 1 month ago | anandsit
    org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://stash.xxxxxxxcom/rest/api/1.0/projects/ECOMM/repos/platform/commits?until=master&limit=25&start=2875":Read timed out; nested exception is java.net.SocketTimeoutException: Read timed out

  1. johnxfly 1 times, last 1 month ago
  2. tfr 34 times, last 7 months ago
  3. Malcshour 1 times, last 8 months ago
44 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.web.client.HttpClientErrorException

    401 Unauthorized

    at org.springframework.web.client.DefaultResponseErrorHandler.handleError()
  2. Spring
    RestTemplate.exchange
    1. org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    2. org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:614)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    3. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:570)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    4. org.springframework.web.client.RestTemplate.execute(RestTemplate.java:545)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    5. org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:466)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    5 frames
  3. com.capitalone.dashboard
    CollectorTask.run
    1. com.capitalone.dashboard.collector.DefaultBitbucketServerClient.makeRestCall(DefaultBitbucketServerClient.java:227)[bitbucket-scm-collector-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT]
    2. com.capitalone.dashboard.collector.DefaultBitbucketServerClient.getCommits(DefaultBitbucketServerClient.java:88)[bitbucket-scm-collector-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT]
    3. com.capitalone.dashboard.collector.GitCollectorTask.collect(GitCollectorTask.java:132)[bitbucket-scm-collector-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT]
    4. com.capitalone.dashboard.collector.CollectorTask.run(CollectorTask.java:63)[core-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT]
    4 frames
  4. Spring Context
    ReschedulingRunnable.run
    1. org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    2. org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE]
    2 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_91]
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_91]
    3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[na:1.8.0_91]
    4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[na:1.8.0_91]
    5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_91]
    6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_91]
    7. java.lang.Thread.run(Thread.java:745)[na:1.8.0_91]
    7 frames