This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-01
Channels
- # aatree (1)
- # alda (1)
- # announcements (3)
- # beginners (10)
- # boot (44)
- # braid-chat (6)
- # cbus (5)
- # cider (19)
- # cljs-dev (5)
- # cljsrn (11)
- # clojure (203)
- # clojure-austria (1)
- # clojure-canada (1)
- # clojure-germany (2)
- # clojure-poland (46)
- # clojure-russia (38)
- # clojurescript (79)
- # clojuresque (2)
- # code-reviews (11)
- # core-async (6)
- # cursive (11)
- # datomic (12)
- # dirac (91)
- # hoplon (8)
- # juxt (14)
- # ldnclj (7)
- # lein-figwheel (6)
- # leiningen (18)
- # off-topic (3)
- # om (230)
- # om-next (7)
- # onyx (31)
- # parinfer (1)
- # proton (1)
- # re-frame (44)
- # reagent (2)
- # rethinkdb (10)
- # spacemacs (5)
- # yada (24)
welcome @lozlow and @bauerpauer 👋
I've been trying to get a client talking to a server with castra for a little while now, and I haven't had any luck so far. The latest bit of advice I got was to check my server in a REPL to make sure that's working, and after finally managing to get a REPL setup for my server (I was missing the db-spec), nothing seems to be wrong with it. My RPC mkremote
functions in the client continue to return server errors, though. I think I'm probably misunderstanding something fundamental about castra or RPC or something, and the documentation and examples I've found haven't been very helpful. Is there maybe some weird interaction it's having with Heroku, where I'm hosting my server?
@numberq: what kind of errors do you get?
@numberq: mkremote/castra plumbing don't do much more than a regular ajax call does, so you can look for things in the browser's "network console" if you're on chrome
that will show you exactly what the request/response/errors are
@alandipert: The RPC requests are being responded to with status 200 OK, but the payload is just what I have set for the not found
route. Interestingly (at least, to me), if I don't wrap my application in wrap-castra
in the server call, it returns a 404 Not Found instead of 200 OK, but otherwise nothing changes.