Fork me on GitHub
#datomic
<
2019-11-05
>
Msr Tim02:11:14

Hello, I followed ions tutorial described here

Msr Tim02:11:55

aws lambda invoke --function-name $(GROUP)-get-items-by-type --payload \"hat\" /dev/stdout

Msr Tim02:11:13

this worked as expected but when i setup api gateway and did a curl i get the following

Msr Tim02:11:38

curl https://{URL}/dev/datomic -d :hat
I3t7OmNvbG9yIDpncmVlbiwgOnR5cGUgOmhhdCwgOnNpemUgOm1lZGl1bSwgOnNrdSAiU0tVLTIzIn0KICB7OmNvbG9yIDpyZWQsIDp0eXBlIDpoYXQsIDpzaXplIDpzbWFsbCwgOnNrdSAiU0tVLTMifQogIHs6Y29sb3IgOmdyZWVuLCA6dHlwZSA6aGF0LCA6c2l6ZSA6eGxhcmdlLCA6c2t1ICJTS1UtMzEifQogIHs6Y29sb3IgOnJlZCwgOnR5cGUgOmhhdCwgOnNpemUgOnhsYXJnZSwgOnNrdSAiU0tVLTE1In0KICB7OmNvbG9yIDpncmVlbiwgOnR5cGUgOmhhdCwgOnNpemUgOmxhcmdlLCA6c2t1ICJTS1UtMjcifQogIHs6Y29sb3IgOnllbGxvdywgOnR5cGUgOmhhdCwgOnNpemUgOmxhcmdlLCA6c2t1ICJTS1UtNTkifQogIHs6Y29sb3IgOnllbGxvdywgOnR5cGUgOmhhdCwgOnNpemUgOm1lZGl1bSwgOnNrdSAiU0tVLTU1In0KICB7OmNvbG9yIDp5ZWxsb3csIDp0eXBlIDpoYXQsIDpzaXplIDp4bGFyZ2UsIDpza3UgIlNLVS02MyJ9CiAgezpjb2xvciA6Ymx1ZSwgOnR5cGUgOmhhdCwgOnNpemUgOm1lZGl1bSwgOnNrdSAiU0tVLTM5In0KICB7OmNvbG9yIDpyZWQsIDp0eXBlIDpoYXQsIDpzaXplIDpsYXJnZSwgOnNrdSAiU0tVLTExIn0KICB7OmNvbG9yIDpncmVlbiwgOnR5cGUgOmhhdCwgOnNpemUgOnNtYWxsLCA6c2t1ICJTS1UtMTkifQogIHs6Y29sb3IgOmJsdWUsIDp0eXBlIDpoYXQsIDpzaXplIDpsYXJnZSwgOnNrdSAiU0tVLTQzIn0KICB7OmNvbG9yIDpyZWQsIDp0eXBlIDpoYXQsIDpzaXplIDptZWRpdW0sIDpza3UgIlNLVS03In0KICB7OmNvbG9yIDp5ZWxsb3csIDp0eXBlIDpoYXQsIDpzaXplIDpzbWFsbCwgOnNrdSAiU0tVLTUxIn0KICB7OmNvbG9yIDpyZWQsIDp0eXBlIDpoYXQsIDpzaXplIDpzbWFsbCwgOnNrdSAiU0tVLTEyMzQ1In0KICB7OmNvbG9yIDpibHVlLCA6dHlwZSA6aGF0LCA6c2l6ZSA6eGxhcmdlLCA6c2t1ICJTS1UtNDcifQogIHs6Y29sb3IgOmJsdWUsIDp0eXBlIDpoYXQsIDpzaXplIDpzbWFsbCwgOnNrdSAiU0tVLTM1In19Cg

onetom09:11:58

@meowlicious99 if i dedcode that response it seems legit (aside from the missing == from the end of the data):

$ (pbpaste; echo ==) | base64 -d
#{{:color :green, :type :hat, :size :medium, :sku "SKU-23"}
  {:color :red, :type :hat, :size :small, :sku "SKU-3"}
  {:color :green, :type :hat, :size :xlarge, :sku "SKU-31"}
  {:color :red, :type :hat, :size :xlarge, :sku "SKU-15"}
  {:color :green, :type :hat, :size :large, :sku "SKU-27"}
  {:color :yellow, :type :hat, :size :large, :sku "SKU-59"}
  {:color :yellow, :type :hat, :size :medium, :sku "SKU-55"}
  {:color :yellow, :type :hat, :size :xlarge, :sku "SKU-63"}
  {:color :blue, :type :hat, :size :medium, :sku "SKU-39"}
  {:color :red, :type :hat, :size :large, :sku "SKU-11"}
  {:color :green, :type :hat, :size :small, :sku "SKU-19"}
  {:color :blue, :type :hat, :size :large, :sku "SKU-43"}
  {:color :red, :type :hat, :size :medium, :sku "SKU-7"}
  {:color :yellow, :type :hat, :size :small, :sku "SKU-51"}
  {:color :red, :type :hat, :size :small, :sku "SKU-12345"}
  {:color :blue, :type :hat, :size :xlarge, :sku "SKU-47"}
  {:color :blue, :type :hat, :size :small, :sku "SKU-35"}}

danieroux13:11:48

In Datomic Cloud, how do we copy a database to a new database? Naively transacting the datoms from the tx-range fails because the entity ids do not match

🤞 4
bartuka14:11:00

I am experiencing an odd behavior when I need to connect to datomic cloud. Oftren I receive an error :cognitect.anomalies/unavailable "connection refused". however, I just wait and execute the mount/start command that is managing my connection with datomic and everything works fine.

ssdev21:11:11

Hey folks. This is a potentially dumb question but, as I'm going through the ion tutorial, I'm noticing that the web service ion section results in an api gateway endpoint that ends with /datomic. Is /datomic always necessary at the end of the url? If not, how do I get rid of that?