I am using clj-http for API calls but i am getting very generic error message.
ExceptionInfo clj-http: status 415 clj-http.client/wrap-exceptions/fn--1863 (client.clj:196)
How can i see the full response from API?
On
The HTTP client library appears to be reporting that the server rejected your request with HTTP status code 415. The Internet Engineering Task Force defined HTTP status code 415 in RFC 7231.
The default for clj-http is to throw exceptions on >=400 status codes. So once you see an exception, dig deeper with e.g.
(pst)or how you usually deal with the exception. E.g.If you don't want this feature, you can disable it with the option
:throw-exceptions false:Or if you really want to see what is going on, you can also use
:debug trueto let the underlying http librarly log "everything":