com.sdl.web.client.ClientException: Unable to obtain OAuth token from discovery service. Probably Discovery service is not up and running.

Tridion | Hirokazu Shikata | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Discovery Service 'discovery-registration' command fails by Unable to obtain OAuth token

    Tridion | 9 months ago | Hirokazu Shikata
    com.sdl.web.client.ClientException: Unable to obtain OAuth token from discovery service. Probably Discovery service is not up and running.
  2. 0

    Giving "java.net.SocketTimeoutException: Read timed out" on one specific page

    Stack Overflow | 11 months ago | Ahmed Talha
    java.net.SocketTimeoutException: Read timed out
  3. 0

    timeout on pull request API call

    GitHub | 8 months ago | McFoggy
    java.lang.Error: org.kohsuke.github.HttpException: Server returned HTTP response code: -1, message: 'null' for URL: http://XXXXXXXXXXXXXXXXXXXXX/api/v3/repos/awxgx/jira-git-demo-01/pulls?state=open
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 4#252461274

    GitHub | 5 months ago | startprogress
    java.net.SocketTimeoutException: Read timed out
  6. 0

    Getting SocketTimeoutException while calling KIE using REST call

    Google Groups | 5 months ago | Alok Singh
    org.kie.remote.common.rest.KieRemoteHttpRequestException: Error occurred when trying to retrieve response code

  1. jpvee 32 times, last 2 months ago
  2. chenjunjun 3 times, last 2 months ago
  3. marcbouvierdav 2 times, last 5 months ago
  4. vega113 1 times, last 10 months ago
11 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. java.net.SocketTimeoutException

    Read timed out

    at java.net.SocketInputStream.socketRead0()
  2. Java RT
    HttpURLConnection.getResponseCode
    1. java.net.SocketInputStream.socketRead0(Native Method)
    2. java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
    3. java.net.SocketInputStream.read(SocketInputStream.java:170)
    4. java.net.SocketInputStream.read(SocketInputStream.java:141)
    5. java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
    6. java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
    7. java.io.BufferedInputStream.read(BufferedInputStream.java:345)
    8. sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:704)
    9. sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
    10. sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1536)
    11. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
    12. java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
    12 frames
  3. com.sdl.odata
    BasicEndpointCaller.doPostEntity
    1. com.sdl.odata.client.caller.BasicEndpointCaller.getResponse(BasicEndpointCaller.java:204)
    2. com.sdl.odata.client.caller.BasicEndpointCaller.sendRequest(BasicEndpointCaller.java:145)
    3. com.sdl.odata.client.caller.BasicEndpointCaller.doPostEntity(BasicEndpointCaller.java:105)
    3 frames
  4. com.sdl.web
    AbstractCommand.lambda$getExistingCapabilities$2
    1. com.sdl.web.client.impl.DefaultOAuthClient.obtainTokenResult(DefaultOAuthClient.java:115)
    2. com.sdl.web.client.impl.DefaultOAuthClient.doFetchOAuthToken(DefaultOAuthClient.java:100)
    3. com.sdl.web.client.impl.DefaultOAuthClient.getToken(DefaultOAuthClient.java:79)
    4. com.sdl.web.client.impl.OAuthTokenProvider.getToken(OAuthTokenProvider.java:70)
    5. com.sdl.web.discovery.registration.ODataClientProvider.provideClient(ODataClientProvider.java:129)
    6. com.sdl.web.discovery.registration.command.AbstractCommand.getCapabilitiesFromService(AbstractCommand.java:33)
    7. com.sdl.web.discovery.registration.command.AbstractCommand.lambda$getExistingCapabilities$2(AbstractCommand.java:65)
    7 frames
  5. Java RT
    ReferencePipeline.collect
    1. java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
    2. java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)
    3. java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
    4. java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
    5. java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
    6. java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    7. java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
    7 frames
  6. com.sdl.web
    Main.main
    1. com.sdl.web.discovery.registration.command.AbstractCommand.getExistingCapabilities(AbstractCommand.java:67)
    2. com.sdl.web.discovery.registration.command.UpdateCommand.performCommand(UpdateCommand.java:46)
    3. com.sdl.web.discovery.registration.RegistrationTool.performCommand(RegistrationTool.java:62)
    4. com.sdl.web.discovery.registration.Main.main(Main.java:36)
    4 frames