Skip to content

no try to brace the d/transact! will lead EOF while reading string error #493

Description

@wallewuli

step 1

war4.board.graph=> (try
(d/transact! conn [{:edge/id "test1" :edge/from [:cell/id "r9-c16"] :edge/to [:cell/id "r9-c12"] :edge/weight 1}])
(println "成功插入")
(catch js/Error e
(println "插入失败:" e)))
成功插入
nil

step 2

war4.board.graph=> (d/transact! conn [{:edge/id "test2" :edge/from [:cell/id "r9-c16"] :edge/to [:cell/id "r9-c12"] :edge/weight 1}])
Exception in thread "Thread-238" java.lang.RuntimeException: EOF while reading string
at clojure.lang.Util.runtimeException(Util.java:221)
at clojure.lang.LispReader$StringReader.invoke(LispReader.java:571)
at clojure.lang.LispReader.read(LispReader.java:287)
at clojure.lang.LispReader.readDelimitedList(LispReader.java:1401)
at clojure.lang.LispReader$MapReader.invoke(LispReader.java:1358)
at clojure.lang.LispReader.read(LispReader.java:287)
at clojure.lang.LispReader.read(LispReader.java:218)
at clojure.lang.LispReader.read(LispReader.java:207)
at clojure.lang.RT.readString(RT.java:1896)
at clojure.lang.RT.readString(RT.java:1891)
at clojure.core$read_string.invokeStatic(core.clj:3841)
at clojure.core$read_string.invoke(core.clj:3831)
at cljs.repl.server$dispatch_request.invokeStatic(server.clj:194)
at cljs.repl.server$dispatch_request.invoke(server.clj:185)
at cljs.repl.server$handle_connection.invokeStatic(server.clj:209)
at cljs.repl.server$handle_connection.invoke(server.clj:205)
at cljs.repl.server$server_loop$fn__8339.invoke(server.clj:219)
at clojure.core$binding_conveyor_fn$fn__5844.invoke(core.clj:2047)
at clojure.lang.AFn.run(AFn.java:22)
at java.base/java.lang.Thread.run(Thread.java:1474)
I don't know what's the problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions