clojars

souenzzo 2021-11-14T14:50:19.026800Z

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) 2021-11-14T15:13:31.027100Z

what version of clj ?

Alex Miller (Clojure team) 2021-11-14T15:15:18.027300Z

(I can't reproduce that)

souenzzo 2021-11-14T17:20:48.027500Z

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) 2021-11-14T18:06:16.028100Z

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

2021-11-14T20:21:55.028300Z

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.