After finished the ions tutorial, I wanted to play a bit with it with an SPA.
So I had to enable CORS, and following AWS API-GW documentation, I decided to change the Lambda function. I supposed to do it in the code, by adding an HTTP header in the items-by-type function:
{:status 200
:headers {"Content-Type" "application/edn"
"Access-Control-Allow-Origin" "*"} ;; <- Here
:body (-> (self-describing-items-by-type (d/db (get-connection)) type)
pp-str)}
After committing the change, I ran:
clojure -A:dev -m datomic.ion.dev '{:op :push}'
But received this message:
Downloading: com/datomic/java-io/0.1.11/java-io-0.1.11.pom from s3://datomic-releases-1fc2183a/maven/releases/
{:command-failed "{:op :push}",
:causes
({:message
"Could not find artifact org.clojure:data.json:jar:0.2.6 in datomic-cloud (s3://datomic-releases-1fc2183a/maven/releases)",
:class ArtifactResolutionException}
{:message
"Could not find artifact org.clojure:data.json:jar:0.2.6 in datomic-cloud (s3://datomic-releases-1fc2183a/maven/releases)",
:class ArtifactNotFoundException})}
Did I miss an step?
Aside Meta: You could add a new category for ions