cljsjs / boot-cljsjs

Helper tasks to aid the packaging of JS dependencies for Clojurescript projects
66 stars 22 forks source link

Invalid cookie header when fetching zip from git #52

Open hlolli opened 6 years ago

hlolli commented 6 years ago

I'm trying to test my changes locally with boot package install target and I get

react-tooltip git:(master) ✗ boot package install target                                                        ~/forks/packages/react-tooltip
Downloading 3.6.0.zip
May 30, 2018 2:35:50 PM org.apache.http.client.protocol.ResponseProcessCookies processCookies
WARNING: Invalid cookie header: "Set-Cookie: logged_in=no; domain=.github.com; path=/; expires=Sun, 30 May 2038 12:35:50 -0000; secure; HttpOnly". Invalid 'expires' attribute: Sun, 30 May 2038 12:35:50 -0000
                                       java.lang.Thread.run                  Thread.java:  748
         java.util.concurrent.ThreadPoolExecutor$Worker.run      ThreadPoolExecutor.java:  624
          java.util.concurrent.ThreadPoolExecutor.runWorker      ThreadPoolExecutor.java: 1149
                        java.util.concurrent.FutureTask.run              FutureTask.java:  266
                                                        ...                                   
                        clojure.core/binding-conveyor-fn/fn                     core.clj: 2022
                                          boot.core/boot/fn                     core.clj: 1031
                                        boot.core/run-tasks                     core.clj: 1021
               cljsjs.boot-cljsjs.packaging/eval372/fn/G/fn                packaging.clj:   99
                                          boot.pod/call-in*                      pod.clj:  413
                                                        ...                                   
org.projectodd.shimdandy.impl.ClojureRuntimeShimImpl.invoke  ClojureRuntimeShimImpl.java:  102
org.projectodd.shimdandy.impl.ClojureRuntimeShimImpl.invoke  ClojureRuntimeShimImpl.java:  109
                                                        ...                                   
                                          boot.pod/call-in*                      pod.clj:  410
                                      boot.pod/eval-fn-call                      pod.clj:  359
                                         clojure.core/apply                     core.clj:  657
                                                        ...                                   
                              cljsjs.impl.download/download                 download.clj:    8
                                                        ...                                   
                                        clj-http.client/get                   client.clj: 1183
                                        clj-http.client/get                   client.clj: 1187
                                   clj-http.client/request*                   client.clj: 1181
                       clj-http.client/wrap-unknown-host/fn                   client.clj: 1009
                               clj-http.links/wrap-links/fn                    links.clj:   63
                           clj-http.cookies/wrap-cookies/fn                  cookies.clj:  131
                             clj-http.client/wrap-method/fn                   client.clj:  882
                      clj-http.client/wrap-nested-params/fn                   client.clj:  983
                        clj-http.client/wrap-form-params/fn                   client.clj:  948
                       clj-http.client/wrap-content-type/fn                   client.clj:  707
                    clj-http.client/wrap-accept-encoding/fn                   client.clj:  746
                             clj-http.client/wrap-accept/fn                   client.clj:  724
                         clj-http.client/wrap-exceptions/fn                   client.clj:  248
                        clj-http.client/exceptions-response                   client.clj:  239
                              slingshot.support/stack-trace                  support.clj:  201
clojure.lang.ExceptionInfo: clj-http: status 404
    data: {#object[clojure.lang.Keyword 0x311797fe ":request-time"] 1128, #object[clojure.lang.Keyword 0x47cc6137 ":repeatable?"] false, #object[clojure.lang.Keyword 0x36c8e3be ":protocol-version"] {#object[clojure.lang.Keyword 0x1cf85885 ":name"] "HTTP", #object[clojure.lang.Keyword 0x388e4b06 ":major"] 1, #object[clojure.lang.Keyword 0x10108298 ":minor"] 1}, #object[clojure.lang.Keyword 0x7c0567d4 ":streaming?"] true, #object[clojure.lang.Keyword 0x4d572ffa ":chunked?"] false, #object[clojure.lang.Keyword 0x6b83e71 ":type"] #object[clojure.lang.Keyword 0x1b97d2f4 ":clj-http.client/unexceptional-status"], #object[clojure.lang.Keyword 0x3cf3f0fd ":reason-phrase"] "Not Found", #object[clojure.lang.Keyword 0x27e3a646 ":headers"] {"Access-Control-Allow-Origin" "https://render.githubusercontent.com", "X-Content-Type-Options" "nosniff", "Content-Length" "15", "X-Frame-Options" "deny", "Strict-Transport-Security" "max-age=31536000", "Connection" "close", "X-GitHub-Request-Id" "E184:4428:2039D1:35FD84:5B0E9AA6", "Date" "Wed, 30 May 2018 12:35:51 GMT", "Vary" "Authorization,Accept-Encoding", "X-XSS-Protection" "1; mode=block", ...}, #object[clojure.lang.Keyword 0x469c03a2 ":orig-content-encoding"] nil, #object[clojure.lang.Keyword 0x612c760a ":status"] 404, ...}
clojure.lang.ExceptionInfo: clj-http: status 404
    line: 49

I found similar ticket for this at https://github.com/dakrone/clj-http/issues/325 maybe it's possible to change the cookie policy to :cookie-policy :standard, wonder if it works or bumping clj-http from 3.7.0 to 3.9.0?