Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-10 Thread James Elliott
Ah, but it actually does make sense now! > Exception in thread "main" java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector, compiling:(server.clj:1:1) The compiler is complaining about finding "(make-response"… where it was looking for a parameter declarati

Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-10 Thread Laws
Ah, finally found it: (defn get-stop-response (make-response "No company specified" "Session ended" true)) I am surprised that the error was for "make-response" and not "get-stop-response". It is "get-stop-response" where I forgot the parameter declaration. On Sunday, January 10, 2016 at

Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-10 Thread Laws
The implication, as I read it, is that there is some place where I do something like this: response-in-amazon-format (make-response company-name outputSpeech-text false)] In some other function, and the compiler feels that I am defining a new arity for that other function? But then I

Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-10 Thread Laws
Yes, I edited the namespace declaration. The full namespace declaration, in server.clj, is: (ns salesvoice.server (:import [java.io FileNotFoundException]) (:require [salesvoice.credentials :as credentials] [salesvoice.middleware :as middleware] [taoensso.timbre :as timbre] [co

Re: java.lang.IllegalArgumentException: Parameter declaration make-response should be a vector

2016-01-10 Thread Jony Hudson
This is probably just a copy and paste problem, rather than the solution to your real problem, but ... the namespace declaration you've got in your OP is missing a couple of closing ). Jony On Sunday, 10 January 2016 07:28:00 UTC, Laws wrote: > > I've been staring at this for awhile, and movin