Skip to content

Instantly share code, notes, and snippets.

@craigbro
Created March 1, 2013 21:30
Show Gist options
  • Save craigbro/5067961 to your computer and use it in GitHub Desktop.
Save craigbro/5067961 to your computer and use it in GitHub Desktop.
stacktrace of clj-http catching a 406 but leaving a conn manager up
clojure.lang.ExceptionInfo: clj-http: status 406 {:object {:trace-redirects ["http://localhost:2280/artifact"], :status 406, :headers {"content-type" "text/plain; charset=utf-8", "date" "Tue, 26 Feb 2013 06:15:34 GMT", "transfer-encoding" "chunked"}, :body "could not access sandbucket\n"}, :environment {client #<client$wrap_output_coercion$fn__14723 clj_http.client$wrap_output_coercion$fn__14723@684a8f4b>, req {:request-method :get, :url "http://localhost:2280/artifact", :as :string, :conn-timeout 1000, :sock-timeout 1000, :query-params {:sample "e18a1a17d640e8160ad56013329dafad", :artifact "report.html"}}, resp {:trace-redirects ["http://localhost:2280/artifact"], :status 406, :headers {"content-type" "text/plain; charset=utf-8", "date" "Tue, 26 Feb 2013 06:15:34 GMT", "transfer-encoding" "chunked"}, :body "could not access sandbucket\n"}, status 406}}
at clj_http.client$wrap_exceptions$fn__14664.invoke(client.clj:87)
at clj_http.client$wrap_accept$fn__14740.invoke(client.clj:255)
at clj_http.client$wrap_accept_encoding$fn__14745.invoke(client.clj:266)
at clj_http.client$wrap_content_type$fn__14736.invoke(client.clj:247)
at clj_http.client$wrap_form_params$fn__14781.invoke(client.clj:340)
at clj_http.client$wrap_nested_params$fn__14798.invoke(client.clj:363)
at clj_http.client$wrap_method$fn__14776.invoke(client.clj:325)
at clj_http.cookies$wrap_cookies$fn__14484.invoke(cookies.clj:113)
at clj_http.links$wrap_links$fn__14512.invoke(links.clj:50)
at clj_http.client$wrap_unknown_host$fn__14806.invoke(client.clj:377)
at clj_http.client$get.doInvoke(client.clj:438)
at clojure.lang.RestFn.invoke(RestFn.java:423)
at threatbrain.peon$artifact.doInvoke(peon.clj:55)
at clojure.lang.RestFn.invoke(RestFn.java:425)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment