Are you expecting token to get converted into a ClojureScript map?
On Mon, Feb 25, 2013 at 11:23 AM, Mike Longworth <[email protected]>wrote: > I've updated to 0.0-1586 build #22 from a much older release: 0.0-1450 > > I'm now geting a problem with (js->clj token) not converting the object > > I don't think the problem is with js->clj: > > (println (expose token true)) gives: > > access_token = > ya29.AHES6ZSgnk3Ws5bB-2aDx41Bbr335hKugjZJfcNAs83d121S306fxy64 > token_type = Bearer > expires_in = 3600 > client_id = 52351124085.apps.googleusercontent.com > scope = > https://www.googleapis.com/auth/drive.file,https://www.googleapis.com/auth/drive.metadata.readonly,https://www.googleapis.com/auth/drive.readonly > g_user_cookie_policy = undefined > cookie_policy = undefined > issued_at = 1361807171 > expires_at = 1361810771 > > This looks ok. > > however > > token > > gives: > > "Error evaluating:" token :as "esef.client.evidence.token" > #<TypeError: Object [object Object] has no method 'toString'> > TypeError: Object [object Object] has no method 'toString' > > > (type token) > > gives a blank line. I think this is why js->clj isn't converting. > > > (alength token) > > gives a blank line. > > (.-token_type token) > > Correctly gives > ya29.AHES6ZSgnk3Ws5bB-2aDx41Bbr335hKugjZJfcNAs83d121S306fxy64 > > Any ideas? Thanks Mike. > > > > > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
