{"action":"created","issue":{"url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/226","repository_url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl","labels_url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/226/comments","events_url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/226/events","html_url":"https://github.com/clojure-emacs/refactor-nrepl/issues/226","id":334842857,"node_id":"MDU6SXNzdWUzMzQ4NDI4NTc=","number":226,"title":"JsonParseException exception thrown on cljr-add-project-dependency","user":{"login":"mbuczko","id":586537,"node_id":"MDQ6VXNlcjU4NjUzNw==","avatar_url":"https://avatars1.githubusercontent.com/u/586537?v=4","gravatar_id":"","url":"https://api.github.com/users/mbuczko","html_url":"https://github.com/mbuczko","followers_url":"https://api.github.com/users/mbuczko/followers","following_url":"https://api.github.com/users/mbuczko/following{/other_user}","gists_url":"https://api.github.com/users/mbuczko/gists{/gist_id}","starred_url":"https://api.github.com/users/mbuczko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbuczko/subscriptions","organizations_url":"https://api.github.com/users/mbuczko/orgs","repos_url":"https://api.github.com/users/mbuczko/repos","events_url":"https://api.github.com/users/mbuczko/events{/privacy}","received_events_url":"https://api.github.com/users/mbuczko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-22T11:22:10Z","updated_at":"2018-06-22T12:52:10Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"When calling `cljr-add-project-dependency` from clj-refactor it ends up with exception being thrown from refactor-nrepl:\r\n\r\n```\r\nCaused by: refactornrepl240SNAPSHOT.com.fasterxml.jackson.core.JsonParseException: Unexpected character (’<’ (code 60)): expected a valid value (number, String, array, object, ’true’, ’false’ or ’null’)\r\n at [Source: (StringReader); line: 1, column: 2]\r\n at refactornrepl240SNAPSHOT.com.fasterxml.jackson.core.JsonParser._constructError (JsonParser.java:1798)\r\n    refactornrepl240SNAPSHOT.com.fasterxml.jackson.core.base.ParserMinimalBase._reportError (ParserMinimalBase.java:663)\r\n    refactornrepl240SNAPSHOT.com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar (ParserMinimalBase.java:561)\r\n    refactornrepl240SNAPSHOT.com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue (ReaderBasedJsonParser.java:1892)\r\n    refactornrepl240SNAPSHOT.com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken (ReaderBasedJsonParser.java:747)\r\n    mranderson048.cheshire.v5v8v0.cheshire.parse$parse.invokeStatic (parse.clj:88)\r\n    mranderson048.cheshire.v5v8v0.cheshire.parse$parse.invoke (parse.clj:86)\r\n    mranderson048.cheshire.v5v8v0.cheshire.core$parse_string.invokeStatic (core.clj:206)\r\n    mranderson048.cheshire.v5v8v0.cheshire.core$parse_string.invoke (core.clj:192)\r\n    mranderson048.cheshire.v5v8v0.cheshire.core$parse_string.invokeStatic (core.clj:203)\r\n    mranderson048.cheshire.v5v8v0.cheshire.core$parse_string.invoke (core.clj:192)\r\n    refactor_nrepl.artifacts$get_versions_BANG_.invokeStatic (artifacts.clj:72)\r\n    refactor_nrepl.artifacts$get_versions_BANG_.invoke (artifacts.clj:62)\r\n    refactor_nrepl.artifacts$collate_artifact_and_versions.invokeStatic (artifacts.clj:80)\r\n    refactor_nrepl.artifacts$collate_artifact_and_versions.invoke (artifacts.clj:78)\r\n    clojure.core$partial$fn__5561.invoke (core.clj:2616)\r\n    clojure.core$map$fn__5587.invoke (core.clj:2747)\r\n    clojure.lang.LazySeq.sval (LazySeq.java:40)\r\n    clojure.lang.LazySeq.seq (LazySeq.java:49)\r\n    clojure.lang.RT.seq (RT.java:528)\r\n    clojure.core$seq__5124.invokeStatic (core.clj:137)\r\n    clojure.core$map$fn__5587.invoke (core.clj:2738)\r\n    clojure.lang.LazySeq.sval (LazySeq.java:40)\r\n    clojure.lang.LazySeq.seq (LazySeq.java:49)\r\n    clojure.lang.Cons.next (Cons.java:39)\r\n    clojure.lang.RT.next (RT.java:706)\r\n    clojure.core$next__5108.invokeStatic (core.clj:64)\r\n    clojure.core$dorun.invokeStatic (core.clj:3134)\r\n    clojure.core$dorun.invoke (core.clj:3125)\r\n    refactor_nrepl.artifacts$add_artifacts$fn__54743$fn__54744.invoke (artifacts.clj:89)\r\n    clojure.core$binding_conveyor_fn$fn__5476.invoke (core.clj:2022)\r\n    clojure.lang.AFn.call (AFn.java:18)\r\n    java.util.concurrent.FutureTask.run (FutureTask.java:266)\r\n    java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1142)\r\n    java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)\r\n    java.lang.Thread.run (Thread.java:745)\r\n```"},"comment":{"url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/comments/399432176","html_url":"https://github.com/clojure-emacs/refactor-nrepl/issues/226#issuecomment-399432176","issue_url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/226","id":399432176,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTQzMjE3Ng==","user":{"login":"mbuczko","id":586537,"node_id":"MDQ6VXNlcjU4NjUzNw==","avatar_url":"https://avatars1.githubusercontent.com/u/586537?v=4","gravatar_id":"","url":"https://api.github.com/users/mbuczko","html_url":"https://github.com/mbuczko","followers_url":"https://api.github.com/users/mbuczko/followers","following_url":"https://api.github.com/users/mbuczko/following{/other_user}","gists_url":"https://api.github.com/users/mbuczko/gists{/gist_id}","starred_url":"https://api.github.com/users/mbuczko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbuczko/subscriptions","organizations_url":"https://api.github.com/users/mbuczko/orgs","repos_url":"https://api.github.com/users/mbuczko/repos","events_url":"https://api.github.com/users/mbuczko/events{/privacy}","received_events_url":"https://api.github.com/users/mbuczko/received_events","type":"User","site_admin":false},"created_at":"2018-06-22T12:52:10Z","updated_at":"2018-06-22T12:52:10Z","author_association":"CONTRIBUTOR","body":"looks like it's a problem of http://search.maven.org, which throttles requests and after 32 request (or so..) returns:\r\n\r\n```\r\nHTTP/1.1 503 Service Temporarily Unavailable\r\nContent-Type: text/html\r\nDate: Fri, 22 Jun 2018 12:46:46 GMT\r\nServer: nginx/1.12.1\r\nContent-Length: 213\r\nConnection: Close\r\n\r\n<html>\r\n<head><title>503 Service Temporarily Unavailable</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>503 Service Temporarily Unavailable</h1></center>\r\n<hr><center>nginx/1.12.1</center>\r\n</body>\r\n</html>\r\n```"}}
{"actor":{"display_login":"mbuczko"}}