On 18 February 2015 at 22:35, gvim <gvi...@gmail.com> wrote:

> On 18/02/2015 15:32, Andy- wrote:
>
>> Without having tested it: I think you're "curl -d" format is wrong. It's
>> not semicolon separated:
>> http://superuser.com/questions/149329/what-is-the-
>> curl-command-line-syntax-to-do-a-post-request
>>
>> HTH
>>
>>
> That solved the curl data submission problem but I'm still getting errors
> and suspect the POST defroute isn't correct. 'Trouble all the examples of
> :post submissions in the docs are mixed up with other factors so it's
> difficult to isolate the correct information.

Replace "min" with "minute" in the route (or change "minute" in the curl
POST to "min"). Because the field names don't agree, the compojure
destructing doesn't match and you end up trying to parseInt nil.

Cheers


>
> gvim
>
> --
> 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 that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> 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 clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jonathan Barber <jonathan.bar...@gmail.com>

-- 
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 that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to