aws

http://status.aws.amazon.com/ https://www.expeditedssl.com/aws-in-plain-english
2020-03-15T11:44:42.135300Z

To those super familiar with cloudfront, has anyone ever successfully put one cloudfront distribution in front of another?

2020-03-15T18:30:06.139400Z

Hey friends!!! has everyone every stumbled upon the following weird error on s3 when using the cognitect/aws-api lib CopyObject operation please ? I have tried to use it to copy an object from one bucket to another : • the copy action worked perfectly as intended : the object is copied to the destination bucket • but as a response to the call, I received an error :

{:cognitect.anomalies/category :cognitect.anomalies/fault, :cognitect.aws.client/throwable #error {
 :cause "Property null is not supported"
 :via
 [{:type java.lang.IllegalArgumentException
   :message "Property null is not supported"
   :at [com.sun.xml.internal.stream.XMLInputFactoryImpl setProperty "XMLInputFactoryImpl.java" 246]}]
 :trace
 [[com.sun.xml.internal.stream.XMLInputFactoryImpl setProperty "XMLInputFactoryImpl.java" 246]
...

2020-03-15T18:30:42.140100Z

it is a little bit puzzling since I am not sure how to investigate this case : the “Property null is not supported” message does not help that much

ghadi 2020-03-15T18:32:33.140800Z

similarly, pasting the error doesn't help that much without the input request

1👍
ghadi 2020-03-15T18:32:57.141200Z

also need your dependencies too, clj -Stree please @kaffein

2020-03-15T18:33:49.142Z

my bad : I will give you the details in a sec

2020-03-15T18:35:09.142300Z

[com.cognitect.aws/api "0.8.391"]
[com.cognitect.aws/endpoints "1.1.11.670"]
[com.cognitect.aws/iam "746.2.533.0"]
[com.cognitect.aws/ec2 "770.2.568.0"]
[com.cognitect.aws/s3 "762.2.561.0"]]

ghadi 2020-03-15T18:36:08.143100Z

no problem. Can you provide the resolved deps, not the declared deps?

ghadi 2020-03-15T18:36:22.143600Z

you look like you're using lein, so lein deps :tree or whatever

ghadi 2020-03-15T18:36:33.143900Z

looking for the version of clojure.data.xml specifically

2020-03-15T18:37:08.144100Z

oh ok

2020-03-15T18:41:09.144800Z

I don’t seem to have found clojure.data.xml while greping it from the output @ghadi

ghadi 2020-03-15T18:41:22.145100Z

org.clojure/data.xml ?

ghadi 2020-03-15T18:41:40.145800Z

I gave you the wrong lib to grep for

2020-03-15T18:41:53.146100Z

oh I gave it the wrong argument indeed

2020-03-15T18:42:10.146300Z

there we go :

[org.clojure/data.xml "0.0.8"]

ghadi 2020-03-15T18:42:17.146600Z

ok that's what I thought

ghadi 2020-03-15T18:42:39.147200Z

somewhere in your dependencies it is asking for an older version of data.xml (0.0.8) instead of the one aws-api needs

ghadi 2020-03-15T18:42:42.147400Z

(which I can't remember)

ghadi 2020-03-15T18:43:08.147900Z

in the output for lein deps :tree there should be some warnings about conflicts

ghadi 2020-03-15T18:43:23.148400Z

you should do :exclusions for whatever is pulling the old version of data.xml

1🙏1🙌
ghadi 2020-03-15T18:43:32.148700Z

then re-test

2020-03-15T18:43:44.149200Z

awesome @ghadi thanks a lot for your help

ghadi 2020-03-15T18:44:06.149900Z

This is a Frequently Encountered Problem™ and I want to make it go away... will consult with the crew

2020-03-15T18:44:15.150100Z

cool thanks a lot