So this was working originally, and then I was trying to get pedestal working inside the ion, but now it appears to have broken completely.
I’ve been trying to debug this and now even a relatively simple bit of code doesn’t appear to be working.
I’m just trying to run this:
(ns ion.api
(:require [datomic.ion.lambda.api-gateway :as apigw]))
(defn test-handler
"Test Handler"
[{:keys [headers body] :as request}]
{:status 200
:body (pr-str headers body request)})
(def app
"API Gateway web service ion for main app."
(apigw/ionize test-handler))
and when I test the lambda I get:
{
"isBase64Encoded": false,
"statusCode": 500,
"headers": {},
"body": "Connection refused"
}
and in cloudwatch:
{:cognitect.anomalies/category :cognitect.anomalies/unavailable, :cognitect.anomalies/message "Connection refused", :clojio/throwable :java.net.ConnectException, :clojio/socket-error :connect, :clojio/at 1559145398145, :clojio/remote "10.213.44.67", :clojio/queue :queued-input, :datomic.ion.lambda.handler/retries 0}
The only thing I can think of is there’s some kind of compile/deploy error, though it appears to deploy successfully, so I’m really uncertain what the issue is.
My next step is cloning the project and starting it again, but I figured I’d see if anyone had any insights.