Fork me on GitHub
#datomic
<
2021-08-13
>
nwjsmith02:08:22

In HTTP direct Ions, how do you get access to the query string for a request? Is it appended to the value of the :uri request map entry?

Daniel Jomphe13:08:35

I get it exactly like the standard Ring adapter expects it, and it exposes it as :query-string for me.

nwjsmith14:08:15

Thanks for looking into it, the docs aren’t complete (https://docs.datomic.com/cloud/ions/ions-reference.html#web-ion) and I haven’t spun up my Cloud env yet. I’ll pop into the forum to see if I can get this added to the docs 👏

Daniel Jomphe14:08:34

Re-reading the doc you provided, I must temper a bit my answer: I get it mostly like the standard Ring adapter expects it, and the adapter exposes it as `:query-string` for me.

prnc10:08:39

I’ve updated solo to 884-9095, still t3.small instance though, what is the recommended way to updated storage size for this instance (default 8GB). Is this something that I could in the cloud formation template, so it’s always brought up with the new default size by ASG? Or create a modifying Launch Configuration with attached volume? Please advise how to go about this :) Context: I’m seeing No space left on device - /opt/codedeploy-agent/deployment-root/9d00fd66-e380-4208-af18-088da384cd80/d-TX1A7WCBC/bundle.tar types of errors during deployments DownloadBundle step. Thanks!

Jakub Holý (HolyJak)18:08:30

Hello! I am trying to run clj inside a local clone of https://github.com/Datomic/day-of-datomic/ after having added the cognitct-dev-tools repo to my global deps.edn and ~/.m2/settings.xml but it fails with

...
Downloading: com/datomic/client-impl-shared/0.8.86/client-impl-shared-0.8.86.jar from central
Downloading: com/datomic/dev-local/0.9.232/dev-local-0.9.232.jar from cognitect-dev-tools
Downloading: org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar from datomic-cloud
Error building classpath. Could not transfer artifact org.apache.httpcomponents:httpclient:jar:4.5.2 from/to central (): status code: 416, reason phrase: Range Not Satisfiable (416)
Why? I see the version exists in maven central. Though from the prev. line it seems it is downloading from "datomic-cloud" (the <s3://datomic-releases-1fc2183a/...>)?

2
Jakub Holý (HolyJak)18:08:52

Fixed by rm -rf ~/.m2/repository/org/apache/httpcomponents/httpclient/4.5.2 as suggested by https://stackoverflow.com/a/15462387

Alex Miller (Clojure team)18:08:20

What version of the Clojure CLI are you using? (`clj --version` or clj -Sdescribe if older)

Alex Miller (Clojure team)19:08:45

ah, could have been a bad download I guess

Alex Miller (Clojure team)19:08:59

or bad version metadata file

👍 2