Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include URL in error message when getting a HTTP 406 #258

Open
AlasdairGray opened this issue Nov 18, 2022 · 0 comments
Open

Include URL in error message when getting a HTTP 406 #258

AlasdairGray opened this issue Nov 18, 2022 · 0 comments
Labels
good first issue Good for newcomers

Comments

@AlasdairGray
Copy link

AlasdairGray commented Nov 18, 2022

When a HTTP 406 error is generated, the resource URL that generated the error is not included in the error message. For example, the following is one that I received:

#error {
 :cause clj-http: status 406
 :data {:headers {server nginx, date Fri, 18 Nov 2022 15:33:47 GMT, content-type text/html; charset=UTF-8, content-length 0, connection keep-alive, x-request-id 20f262ac-b395-4e96-841e-2cb25ec61289, x-runtime 0.037666}, :status 406, :body nil}
 :via
 [{:type clojure.lang.ExceptionInfo
   :message clj-http: status 406
   :data {:headers {server nginx, date Fri, 18 Nov 2022 15:33:47 GMT, content-type text/html; charset=UTF-8, content-length 0, connection keep-alive, x-request-id 20f262ac-b395-4e96-841e-2cb25ec61289, x-runtime 0.037666}, :status 406, :body nil}
   :at [slingshot.support$stack_trace invoke support.clj 201]}]
 :trace

In a HTTP 404 error the URL is included which is super helpful when debuggin.

@RickMoynihan RickMoynihan added the good first issue Good for newcomers label Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants