Fork me on GitHub
#ring
<
2016-12-27
>
petr.mensik21:12:40

Hey guys, I've got a problem with packaging ring application, everything works fine when I run it with lein ring server however it fails to compile with message port ring.util.response/find-header, try updating to Ring 1.5.0+ when I run lein ring uberwar. Relevant deps are [ring 1.5.0.] and [metosin/compojure-api "1.2.0-alpha1"]. Any idea what could be wrong (tried to dig into it for some time but I don't really know since the dependency is there)? Thanks a lot

seancorfield21:12:57

Does lein deps :tree show multiple versions of ring-core being pulled in, perhaps?

seancorfield22:12:38

The error is from compojure-api and seems to date back to 0.7.0 https://github.com/metosin/ring-http-response/commit/43673745a71e0608bc5696318e9d00acfdba0f5c — so it thinks you have an older version of Ring being pulled into your dependencies (or perhaps the dependency is missing altogether in that profile?).

petr.mensik22:12:59

I am doing everything under dev so this should be fine. Seems like there is an older version on the classpath but I am importing the ring in dependencies section and lein deps :tree | grep ring doesn't show anything suspicious

petr.mensik22:12:59

maybe just that compojure api has [metosin/ring-http-response "0.8.0"] but that is a correct version with aforementioned function I suppose