Re: Help Getting Sente to Work

2014-08-01 Thread Timothy Washington
Hey Daniel, Yes, that's true. I've run into that, as I've gotten used to a lot of gymnastics when setting up these tools, lol. So thanks for the heads up. Those friendly reminders are needed :) Tim Washington Interruptsoftware.com On Thu, Jul 31, 2014 at 4:06 AM,

Re: Help Getting Sente to Work

2014-07-31 Thread Daniel Kersten
Hi Timothy, I just wanted to note that you can control the port Austin uses through environment variables. I do this so I can port forward, for example. This probably won't help you though, as httpkit and the browser repl can't run on the same port. On 30 Jul 2014 16:24, "Timothy Washington" wrot

Re: Help Getting Sente to Work

2014-07-30 Thread Peter Taoussanis
> > Ok, new github issues is here >> . >> > Great, thanks - will follow up there later today! Cheers :-) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@goo

Re: Help Getting Sente to Work

2014-07-30 Thread Timothy Washington
Hey Peter, Responses are inlined. On Tue, Jul 29, 2014 at 12:51 AM, Peter Taoussanis wrote: > Wrt the CSRF issue, I'll try running again without it. >> > > Out of curiosity, sure - but if you've already gone to the effort of > setting up the CSRF I'd leave it in (better to have it) :-) > Yep,

Re: Help Getting Sente to Work

2014-07-28 Thread Peter Taoussanis
> > Wrt the CSRF issue, I'll try running again without it. > Out of curiosity, sure - but if you've already gone to the effort of setting up the CSRF I'd leave it in (better to have it) :-) > Now, a port changed fixed the issue for me. But before I passed in a > *chsk-url-fn*, I was still ge

Re: Help Getting Sente to Work

2014-07-28 Thread Timothy Washington
Hey Peter, Thanks for getting back to me. Good explanation here. Wrt the CSRF issue, I'll try running again without it. Now, a port changed fixed the issue for me. But before I passed in a *chsk-url-fn*, I was still getting a 404, even when trying with a browser (ie, using the correct port). Tha

Re: Help Getting Sente to Work

2014-07-27 Thread Peter Taoussanis
The new docstring: https://github.com/ptaoussanis/sente/blob/65fcf8d9be14bfc69a7798b5c159780d1d2a3804/src/taoensso/sente.cljx#L787 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note tha

Re: Help Getting Sente to Work

2014-07-27 Thread Peter Taoussanis
Hey Tim, sorry for not responding earlier - didn't notice your post till now (not often on the group). Glad you found a solution (thanks Dan, Bob!). Just to clarify one thing though - a CSRF middleware is definitely recommended, but shouldn't be _necessary_. If Sente detects that no CSRF toke

Re: Help Getting Sente to Work

2014-07-27 Thread Timothy Washington
Ok, got it. It was indeed the CSRF issue. I included that middleware to fix the issue. For anyone else struggling with this, There's a *sente/example-project* with some code that uses the csrf middlewar

Re: Help Getting Sente to Work

2014-07-26 Thread Daniel Kersten
Speaking of CSRF, I have a slightly different setup from the Sente examples where I use sente for all my communication after the initial load, whereas the Sente examples use normal HTTP to perform logins and only use Sente after login. This way the login request can set the client-id and CSRF token

Re: Help Getting Sente to Work

2014-07-26 Thread Bob Hutchison
Hi Tim, I think I went through this when I was first starting with Sente. You need to setup the CSRF handling part, in the example code by including ring-anti-forgery/wrap-anti-forgery in your routes. *AND* you have to make sure that you are using one of those routes before you try to use Sent

Re: Help Getting Sente to Work

2014-07-25 Thread Daniel Kersten
My server looks like this and its been working for me for the past few months without issue: (defroutes ws-routes (GET "/cmd/chsk" req (ring-ajax-get-or-ws-handshake req)) (POST "/cmd/chsk" req (ring-ajax-postreq))) (defn run [& [routes]] (let [site (http-handl

Help Getting Sente to Work

2014-07-25 Thread Timothy Washington
Hi all, I'm using [com.taoensso/sente "0.15.1" ], and having trouble connecting the client to the server. I'm sure it's something simple, but not obvious, as this is taken directly from the examples on sente's github page. Anyone seen and fixed the error in fi