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

tip

Check if your path is correct, if it's correct already you have to register your path to the mapping configuration.


rafael

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

  • GitHub comment 1162#279324608
    via GitHub by smsuresh
    ,
  • GitHub comment 1073#271332227
    via GitHub by zenglincui
    ,
  • GitHub comment 736#242288335
    via GitHub by RevaSawant
    ,
  • Jenkins Collector Error
    via GitHub by kavitha0624
    ,
  • Not able to fetch commit
    via GitHub by abhishekvats007
    ,
  • GitHub comment 1038#271922229
    via GitHub by satishc1
    ,
    • org.springframework.web.client.HttpClientErrorException: 401 Unauthorized at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:614)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:570)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:545)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:466)[spring-web-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at com.capitalone.dashboard.collector.DefaultBitbucketServerClient.makeRestCall(DefaultBitbucketServerClient.java:227)[bitbucket-scm-collector-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT] at com.capitalone.dashboard.collector.DefaultBitbucketServerClient.getCommits(DefaultBitbucketServerClient.java:88)[bitbucket-scm-collector-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT] at com.capitalone.dashboard.collector.GitCollectorTask.collect(GitCollectorTask.java:132)[bitbucket-scm-collector-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT] at com.capitalone.dashboard.collector.CollectorTask.run(CollectorTask.java:63)[core-2.0.5-SNAPSHOT.jar!/:2.0.5-SNAPSHOT] at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)[spring-context-4.1.7.RELEASE.jar!/:4.1.7.RELEASE] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_91] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_91] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[na:1.8.0_91] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_91] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_91]

    Users with the same issue

    Unknown visitor1 times, last one,
    batwalrus76
    batwalrus767 times, last one,
    johnxfly
    johnxfly72 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    119 more bugmates