Fork me on GitHub

Why I can't download this lib?

clj -Srepro -Sdeps '{:deps {metosin/ring-swagger-ui {:mvn/version "3.36.0"}}}'
Error building classpath. Could not transfer artifact metosin:ring-swagger-ui:jar:3.36.0 from/to clojars (): status code: 416, reason phrase: Range Not Satisfiable (416)

Alex Miller (Clojure team)15:11:18

(I can't reproduce that)


clj -Sdescribe
{:version ""
 :config-files ["/usr/share/clojure/deps.edn" "/home/souenzzo/.clojure/deps.edn" ]
 :config-user "/home/souenzzo/.clojure/deps.edn"
 :config-project "deps.edn"
 :install-dir "/usr/share/clojure"
 :config-dir "/home/souenzzo/.clojure"
 :cache-dir "/home/souenzzo/.clojure/.cpcache"
 :force false
 :repro false
 :main-aliases ""
 :repl-aliases ""}
A rm ~/.m2/repository/metosin/ring-swagger-ui/ -rf + run again solved my problem. But how some wired localstate results in a 416 status code?! maven API is wired.

Alex Miller (Clojure team)18:11:16

Don't know, doesn't make any sense to me either


I have seen that reported from folks in the past, all using clj, and rm'ing the local file always fixes it. I suspect it is some kind of file corruption/truncation, possibly due to a network interruption, but I have no evidence to back that up.