Skip to content

stack trace is printed to console when making an unauthorized call #24

Description

@Jonathan-Zollinger

making a call to version 0.0.1 without global permissions results in a 401 reponse which is printed to the console

io.micronaut.http.client.exceptions.HttpClientResponseException: {"type":"https://httpstatuses.io/401","title":"Unauthorized","status":401,"traceId":"00-cfd870c0d1be3861f41494532edbd1c0-96946286ae3ea991-01"}
        at io.micronaut.http.client.netty.DefaultHttpClient.makeErrorFromRequestBody(DefaultHttpClient.java:2129)
        at io.micronaut.http.client.netty.DefaultHttpClient.handleExchangeResponse(DefaultHttpClient.java:952)
        at io.micronaut.http.client.netty.DefaultHttpClient.lambda$exchange$8(DefaultHttpClient.java:905)
        at io.micronaut.core.execution.ImperativeExecutionFlowImpl.flatMap(ImperativeExecutionFlowImpl.java:72)
        at io.micronaut.http.client.netty.DefaultHttpClient.lambda$exchange$9(DefaultHttpClient.java:905)
        at io.micronaut.http.client.netty.DefaultHttpClient.lambda$sendRequestWithRedirectsNoFilter$44(DefaultHttpClient.java:1653)
  • handle unauthorized responses
  • handle 500 responses

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions