Fork me on GitHub
#aws
<
2020-03-15
>
danielstockton11:03:42

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

kaffein18:03:06

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]
...

kaffein18:03:42

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

ghadi18:03:33

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

👍 4
ghadi18:03:57

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

kaffein18:03:49

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

kaffein18:03:09

[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"]]

ghadi18:03:08

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

ghadi18:03:22

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

ghadi18:03:33

looking for the version of clojure.data.xml specifically

kaffein18:03:09

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

ghadi18:03:22

org.clojure/data.xml ?

ghadi18:03:40

I gave you the wrong lib to grep for

kaffein18:03:53

oh I gave it the wrong argument indeed

kaffein18:03:10

there we go :

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

ghadi18:03:17

ok that's what I thought

ghadi18:03:39

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

ghadi18:03:42

(which I can't remember)

ghadi18:03:08

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

ghadi18:03:23

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

🙌 4
🙏 4
ghadi18:03:32

then re-test

kaffein18:03:44

awesome @ghadi thanks a lot for your help

ghadi18:03:06

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

kaffein18:03:15

cool thanks a lot