This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-13
Channels
- # beginners (36)
- # boot (1)
- # cider (4)
- # cljsrn (2)
- # clojure (137)
- # clojure-brasil (3)
- # clojure-czech (3)
- # clojure-italy (17)
- # clojure-nl (8)
- # clojure-spec (7)
- # clojure-uk (153)
- # clojurescript (84)
- # data-science (2)
- # datascript (13)
- # datomic (30)
- # editors (64)
- # emacs (22)
- # events (6)
- # figwheel (26)
- # fulcro (7)
- # hoplon (5)
- # jobs (5)
- # jobs-discuss (57)
- # keechma (3)
- # leiningen (4)
- # luminus (1)
- # midje (2)
- # off-topic (26)
- # portkey (18)
- # re-frame (4)
- # reagent (10)
- # ring-swagger (3)
- # shadow-cljs (135)
- # spacemacs (5)
- # sql (14)
- # tools-deps (125)
So I'm trying to follow the setup for https://github.com/JarrodCTaylor/authenticated-compojure-api and I'm getting the following error Caused by: org.postgresql.util.PSQLException: This ResultSet is closed
and I followed the issue to the call in query_defs.clj
and found :start (conman/connect! pool-spec)
but I'm kinda stumped on where to go from there. Anyone run into this before?
Sounds like you're trying to realize a lazy sequence outside the scope of a connection?
Have you specified the environment variables correctly? There are a lot of moving parts in that template.
ah. that might be part of it. Thought they were specified in profiles.clj, I'll try the env vars
Looks like you can edit the generated ./profiles.clj
file to set default values for them.
There are a lot of libraries in that template that I have no experience with so if you're having problems, I'd recommend pinging the author (who is not in this channel) @jarrodctaylor
ok cool. yeah I was looking through it, definitely a lot (got confused for a second by the sendinblue references since I hadn't heard of them before haha)
I tend to be wary of templates that dump a whole big ball of libraries on me, unless I'm already familiar with those libraries.
(I pretty much never use templates to start a new project, beyond the built-in app
template)
That's fair. I'd used the compojure-api
one before and it had worked nicely out of the box so when I saw the authed one I figured I'd give it a go and save myself the hassle of writing auth. I might just go back to the simple one.
@bwstearns The following gets an example project up with a successful test run for me.
- lein new authenticated-compojure-api example-auth
- cd example-auth
- psql < script/init_database.sql
- lein migratus migrate && lein with-profile test migratus migrate
- lein test
@jarrodctaylor thanks for popping in. I just tried running that and it bombed out on the lein migratus migrate
step.