Fork me on GitHub
#clojars
<
2021-11-14
>
souenzzo14:11:19

Why I can't download this lib? https://clojars.org/metosin/ring-swagger-ui/versions/3.36.0

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)

souenzzo17:11:48

clj -Sdescribe
{:version "1.10.3.1020"
 :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

tcrawley20:11:55

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.