Fork me on GitHub
#aws-lambda
<
2020-01-19
>
dennisa22:01:58

Is someone using Serverless Framework for deployment? Deployment to AWS goes perfectly fine. But I am unable to invoke the function locally like I used to with Cljs.

sls invoke local -f current --verbose
Serverless: In order to get human-readable output, please implement "toString()" method of your "ApiGatewayResponse" object.
Exception in thread "main"
java.lang.ExceptionInInitializerError

	at clojure.lang.Namespace.<init>(Namespace.java:34)
	at clojure.lang.Namespace.findOrCreate(Namespace.java:176)
	at clojure.lang.Var.internPrivate(Var.java:156)
	at aws_clojure_simple_http_endpoint.core.<clinit>(Unknown Source)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:374)
	at com.serverless.InvokeBridge.getInstance(InvokeBridge.java:69)
	at com.serverless.InvokeBridge.<init>(InvokeBridge.java:37)
	at com.serverless.InvokeBridge.main(InvokeBridge.java:150)
Caused by: .FileNotFoundException: Could not locate clojure/core__init.class, clojure/core.clj or clojure/core.cljc on classpath.
	at clojure.lang.RT.load(RT.java:466)
	at clojure.lang.RT.load(RT.java:428)
	at clojure.lang.RT.doInit(RT.java:471)
	at clojure.lang.RT.<clinit>(RT.java:338)
	... 9 more