For example,
When call some Twitter APIs:
(ns foo
(:require [clj-http.client :as http]
[ring.util.response :as ring])
(:import [clojure.lang ExceptionInfo]))
(try
(let [response (http/post "https://api.twitter.com/1.1/statuses/show.json")]
#_"Something to do."
(ring/status response 200))
(catch ExceptionInfo e
#_"Something to do."))
In any case, this will return AssertionError.
ERROR in (statuses-show-test) (cookies.clj:73)
>
Uncaught exception, not in assertion. expected: nil actual:
java.lang.AssertionError: Assert failed: (every? valid-attr? attrs)
Fllowing some stacktraces...
This has been failed pre-assert for ring.middleware.cookies/write-attr-map
because the Expires field in cookies via Twitter is not RFC822. Its format is
EEE, dd-MMM-yyyy HH:mm:ss z (in US locale). How should I do for responding via
Twitter APIs with valid Expires?
--
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/d/optout.