Advertisement
Guest User

ExceptionTrace

a guest
Jun 30th, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.07 KB | None | 0 0
  1. 20-06-30 16:00:43 DESKTOP-FSLICDH INFO [ring.logger.timbre:13] - Starting :post /api/tasks for 0:0:0:0:0:0:0:1 {"host" "localhost:8080", "user-agent" "PostmanRuntime/7.26.1", "content-type" "application/json", "content-length" "129", "connection" "keep-alive", "accept" "*/*", "accept-encoding" "gzip, deflate, br", "postman-token" "222a86e7-358d-40c7-982e-e53adc97b6b0", "cache-control" "no-cache"}
  2. 20-06-30 16:00:43 DESKTOP-FSLICDH DEBUG [ring.logger.timbre:13] - Request details: {:remote-addr "0:0:0:0:0:0:0:1", :server-port 8080, :content-length 129, :content-type "application/json", :character-encoding "utf8", :uri "/api/tasks", :server-name "localhost", :query-string nil, :scheme :http, :request-method :post}
  3. 20-06-30 16:00:43 DESKTOP-FSLICDH INFO [ring.logger.timbre:13] - \ - - - - Params: {:name "Test Task", :type_id 1, :status_id 1, :start_date "2007-12-03'T'10:15:30", :created_by 1, :users [1]}
  4. 20-06-30 16:00:43 DESKTOP-FSLICDH ERROR [ring.logger.timbre:12] - Uncaught exception Request validation failed: #compojure.api.coercion.core.CoercionError{:schema {:type_id (enum "3" 1 "4" 4 3 2 "1" "2"), :status_id (enum "3" 1 "4" 4 3 2 "1" "2"), #schema.core.OptionalKey{:k :is_whole_day} (maybe Bool), :name java.lang.String, #schema.core.OptionalKey{:k :time_deleted} (maybe java.time.LocalDateTime), #schema.core.OptionalKey{:k :time_edited} (maybe java.time.LocalDateTime), #schema.core.OptionalKey{:k :reminder_date} (maybe java.time.LocalDateTime), #schema.core.OptionalKey{:k :is_deleted} (maybe Bool), #schema.core.OptionalKey{:k :description} (maybe Str), :start_date java.time.LocalDateTime, #schema.core.OptionalKey{:k :end_date} (maybe java.time.LocalDateTime), :created_by Int, #schema.core.OptionalKey{:k :time_created} (maybe java.time.LocalDateTime), :users [Int]}, :errors {:start_date (not (instance? java.time.LocalDateTime a-java.lang.String))}} processing request: for 0:0:0:0:0:0:0:1 in (38 ms) - request was: {:compojure.api.request/muuntaja #Muuntaja{:produces #{"application/json" "application/transit+msgpack" "application/transit+json" "application/edn"}, :consumes #{"application/json" "application/transit+msgpack" "application/transit+json" "application/edn"}, :default-charset "utf-8", :default-format "application/json"}, :compojure.api.request/coercion :schema, :compojure.api.request/swagger [{:consumes #{"application/json" "application/transit+msgpack" "application/transit+json" "application/edn"}, :produces #{"application/json" "application/transit+msgpack" "application/transit+json" "application/edn"}}], :logger-end-time 1593532843824, :compojure.api.request/paths {:paths #linked/map [["/auth/sign-in" {:post {:tags #{"Authentication"}}}] ["/auth/sign-up" {:post {:tags #{"Authentication"}}}] ["/api/tasks" {:post {:tags #{"Tasks"}, :parameters {:body {:type_id (enum "3" 1 "4" 4 3 2 "1" "2"), :status_id (enum "3" 1 "4" 4 3 2 "1" "2"), #schema.core.OptionalKey{:k :is_whole_day} (maybe Bool), :name java.lang.String, #schema.core.OptionalKey{:k :time_deleted} (maybe java.time.LocalDateTime), #schema.core.OptionalKey{:k :time_edited} (maybe java.time.LocalDateTime), #schema.core.OptionalKey{:k :reminder_date} (maybe java.time.LocalDateTime), #schema.core.OptionalKey{:k :is_deleted} (maybe Bool), #schema.core.OptionalKey{:k :description} (maybe Str), :start_date java.time.LocalDateTime, #schema.core.OptionalKey{:k :end_date} (maybe java.time.LocalDateTime), :created_by Int, #schema.core.OptionalKey{:k :time_created} (maybe java.time.LocalDateTime), :users [Int]}}}}]]}, :remote-addr "0:0:0:0:0:0:0:1", :params {:name "Test Task", :type_id 1, :status_id 1, :start_date "2007-12-03'T'10:15:30", :created_by 1, :users [1]}, :compojure.api.request/lookup {}, :logger-start-time 1593532843786, :body-params {:name "Test Task", :type_id 1, :status_id 1, :start_date "2007-12-03'T'10:15:30", :created_by 1, :users [1]}, :headers {"host" "localhost:8080", "user-agent" "PostmanRuntime/7.26.1", "content-type" "application/json", "content-length" "129", "connection" "keep-alive", "accept" "*/*", "accept-encoding" "gzip, deflate, br", "postman-token" "222a86e7-358d-40c7-982e-e53adc97b6b0", "cache-control" "no-cache"}, :async-channel #object[org.httpkit.server.AsyncChannel 0x1546c599 "/0:0:0:0:0:0:0:1:8080<->/0:0:0:0:0:0:0:1:62778"], :server-port 8080, :muuntaja/request #FormatAndCharset{:format "application/json", :charset "utf-8"}, :content-length 129, :form-params nil, :websocket? false, :query-params {}, :content-type "application/json", :character-encoding "utf8", :uri "/api/tasks", :server-name "localhost", :query-string nil, :muuntaja/response #FormatAndCharset{:format "application/json", :charset "utf-8"}, :body #object[org.httpkit.BytesInputStream 0x61a94a29 "BytesInputStream[len=129]"], :muuntaja/format #FormatAndCharset{:format "application/json", :charset "utf-8"}, :scheme :http, :request-method :post}
  5. java.lang.Thread.run Thread.java: 748
  6. java.util.concurrent.ThreadPoolExecutor$Worker.run ThreadPoolExecutor.java: 624
  7. java.util.concurrent.ThreadPoolExecutor.runWorker ThreadPoolExecutor.java: 1149
  8. java.util.concurrent.FutureTask.run FutureTask.java
  9. java.util.concurrent.FutureTask.run$$$capture FutureTask.java: 266
  10. java.util.concurrent.Executors$RunnableAdapter.call Executors.java: 511
  11. org.httpkit.server.HttpHandler.run RingHandler.java: 115
  12. /compojure.api.routes.Route routes.clj: 90
  13. compojure.api.middleware/wrap-inject-data/fn middleware.clj: 100
  14. ring.middleware.params/wrap-params/fn params.clj: 67
  15. ring.middleware.nested-params/wrap-nested-params/fn nested_params.clj: 89
  16. ring.middleware.keyword-params/wrap-keyword-params/fn keyword_params.clj: 53
  17. muuntaja.middleware/wrap-format-negotiate/fn middleware.clj: 95
  18. muuntaja.middleware/wrap-format-response/fn middleware.clj: 131
  19. compojure.api.middleware/wrap-exceptions/fn middleware.clj: 66
  20. muuntaja.middleware/wrap-format-request/fn middleware.clj: 113
  21. compojure.api.middleware/wrap-exceptions/fn middleware.clj: 66
  22. muuntaja.middleware/wrap-params/fn middleware.clj: 51
  23. compojure.api.middleware/wrap-inject-data/fn middleware.clj: 100
  24. compojure.api.middleware/wrap-swagger-data/fn middleware.clj: 183
  25. ring.middleware.conditional/if/fn conditional.clj: 24
  26. ring.logger/wrap-request-start/fn logger.clj: 37
  27. ring.logger/wrap-with-logger*/fn logger.clj: 19
  28. /compojure.api.routes.Route routes.clj: 90
  29. compojure.core/routes/fn core.clj: 192
  30. clojure.core/apply core.clj: 667
  31. ...
  32. compojure.core/routing core.clj: 182
  33. compojure.core/routing core.clj: 185
  34. clojure.core/some core.clj: 2701
  35. compojure.core/routing/fn core.clj: 185
  36. /compojure.api.routes.Route routes.clj: 90
  37. compojure.api.compojure-compat/make-context/fn compojure_compat.clj: 34
  38. compojure.api.compojure-compat/make-context/handler compojure_compat.clj: 26
  39. compojure.core/routes/fn core.clj: 192
  40. clojure.core/apply core.clj: 667
  41. ...
  42. compojure.core/routing core.clj: 182
  43. compojure.core/routing core.clj: 185
  44. clojure.core/some core.clj: 2701
  45. compojure.core/routing/fn core.clj: 185
  46. /compojure.api.routes.Route routes.clj: 90
  47. compojure.core/routes/fn core.clj: 192
  48. clojure.core/apply core.clj: 667
  49. ...
  50. compojure.core/routing core.clj: 182
  51. compojure.core/routing core.clj: 185
  52. clojure.core/some core.clj: 2701
  53. compojure.core/routing/fn core.clj: 185
  54. /compojure.api.routes.Route routes.clj: 90
  55. compojure.api.compojure-compat/make-context/fn compojure_compat.clj: 34
  56. compojure.api.compojure-compat/make-context/handler compojure_compat.clj: 26
  57. compojure.core/routes/fn core.clj: 192
  58. clojure.core/apply core.clj: 667
  59. ...
  60. compojure.core/routing core.clj: 182
  61. compojure.core/routing core.clj: 185
  62. clojure.core/some core.clj: 2701
  63. compojure.core/routing/fn core.clj: 185
  64. /compojure.api.routes.Route routes.clj: 90
  65. compojure.core/wrap-route-matches/fn core.clj: 146
  66. compojure.core/wrap-route-info/fn core.clj: 137
  67. compojure.core/wrap-route-middleware/fn core.clj: 128
  68. compojure.core/wrap-response/fn core.clj: 158
  69. kondo.app.api.route.task/fn task.clj: 11
  70. compojure.api.coercion/coerce-request! coercion.clj: 47
  71. clojure.lang.ExceptionInfo: Request validation failed: #compojure.api.coercion.core.CoercionError{:schema {:type_id (enum "3" 1 "4" 4 3 2 "1" "2"), :status_id (enum "3" 1 "4" 4 3 2 "1" "2"), #schema.core.OptionalKey{:k :is_whole_day} (maybe Bool), :name java.lang.String, #schema.core.OptionalKey{:k :time_deleted} (maybe java.time.LocalDateTime), #schema.core.OptionalKey{:k :time_edited} (maybe java.time.LocalDateTime), #schema.core.OptionalKey{:k :reminder_date} (maybe java.time.LocalDateTime), #schema.core.OptionalKey{:k :is_deleted} (maybe Bool), #schema.core.OptionalKey{:k :description} (maybe Str), :start_date java.time.LocalDateTime, #schema.core.OptionalKey{:k :end_date} (maybe java.time.LocalDateTime), :created_by Int, #schema.core.OptionalKey{:k :time_created} (maybe java.time.LocalDateTime), :users [Int]}, :errors {:start_date (not (instance? java.time.LocalDateTime a-java.lang.String))}}
  72. coercion: {:name :schema,
  73. :options
  74. {:body
  75. {:default
  76. #object[clojure.core$constantly$fn__5672 0x41ccc05d "clojure.core$constantly$fn__5672@41ccc05d"],
  77. :formats
  78. {"application/json"
  79. #object[ring.swagger.coerce$json_schema_coercion_matcher 0x6dd77582 "ring.swagger.coerce$json_schema_coercion_matcher@6dd77582"],
  80. "application/msgpack"
  81. #object[ring.swagger.coerce$json_schema_coercion_matcher 0x6dd77582 "ring.swagger.coerce$json_schema_coercion_matcher@6dd77582"],
  82. "application/x-yaml"
  83. #object[ring.swagger.coerce$json_schema_coercion_matcher 0x6dd77582 "ring.swagger.coerce$json_schema_coercion_matcher@6dd77582"]}},
  84. :string
  85. {:default
  86. #object[ring.swagger.coerce$query_schema_coercion_matcher 0x48cf88d5 "ring.swagger.coerce$query_schema_coercion_matcher@48cf88d5"]},
  87. :response
  88. {:default
  89. #object[clojure.core$constantly$fn__5672 0x7e023632 "clojure.core$constantly$fn__5672@7e023632"]}}}
  90. errors: {:start_date
  91. (not (instance? java.time.LocalDateTime a-java.lang.String))}
  92. in: [:request :body-params]
  93. request: {:compojure.api.request/muuntaja
  94. {:negotiate-content-type
  95. #object[muuntaja.parse$fast_memoize$fn__20873 0x649b5d1e "muuntaja.parse$fast_memoize$fn__20873@649b5d1e"],
  96. :negotiate-accept
  97. #object[muuntaja.parse$fast_memoize$fn__20873 0x2455517c "muuntaja.parse$fast_memoize$fn__20873@2455517c"],
  98. :negotiate-accept-charset
  99. #object[muuntaja.parse$fast_memoize$fn__20873 0x18dd7f07 "muuntaja.parse$fast_memoize$fn__20873@18dd7f07"],
  100. :extract-content-type
  101. #object[muuntaja.core$extract_content_type_ring 0x72760801 "muuntaja.core$extract_content_type_ring@72760801"],
  102. :extract-accept
  103. #object[muuntaja.core$extract_accept_ring 0x46df46df "muuntaja.core$extract_accept_ring@46df46df"],
  104. :extract-accept-charset
  105. #object[muuntaja.core$extract_accept_charset_ring 0x5517c7 "muuntaja.core$extract_accept_charset_ring@5517c7"],
  106. :encode-response-body?
  107. #object[compojure.api.middleware$encode_QMARK_ 0x709a0f1b "compojure.api.middleware$encode_QMARK_@709a0f1b"],
  108. :decode-request-body?
  109. #object[clojure.core$constantly$fn__5672 0x186792ac "clojure.core$constantly$fn__5672@186792ac"],
  110. :produces
  111. #{"application/json" "application/transit+msgpack"
  112. "application/transit+json" "application/edn"},
  113. :consumes
  114. #{"application/json" "application/transit+msgpack"
  115. "application/transit+json" "application/edn"},
  116. ...},
  117. :compojure.api.request/coercion :schema,
  118. :compojure.api.request/swagger
  119. [{:consumes
  120. #{"application/json" "application/transit+msgpack"
  121. "application/transit+json" "application/edn"},
  122. :produces
  123. #{"application/json" "application/transit+msgpack"
  124. "application/transit+json" "application/edn"}}],
  125. :compojure.api.request/paths
  126. {:paths
  127. {"/auth/sign-in" {:post {:tags #{"Authentication"}}},
  128. "/auth/sign-up" {:post {:tags #{"Authentication"}}},
  129. "/api/tasks"
  130. {:post
  131. {:tags #{"Tasks"},
  132. :parameters
  133. {:body
  134. {:type_id (enum "3" 1 "4" 4 3 2 "1" "2"),
  135. :status_id (enum "3" 1 "4" 4 3 2 "1" "2"),
  136. {:k :is_whole_day} (maybe Bool),
  137. :name java.lang.String,
  138. {:k :time_deleted} (maybe java.time.LocalDateTime),
  139. {:k :time_edited} (maybe java.time.LocalDateTime),
  140. {:k :reminder_date} (maybe java.time.LocalDateTime),
  141. {:k :is_deleted} (maybe Bool),
  142. {:k :description} (maybe Str),
  143. :start_date java.time.LocalDateTime,
  144. ...}}}}}},
  145. :remote-addr "0:0:0:0:0:0:0:1",
  146. :params
  147. {:name "Test Task",
  148. :type_id 1,
  149. :status_id 1,
  150. :start_date "2007-12-03'T'10:15:30",
  151. :created_by 1,
  152. :users [1]},
  153. :compojure.api.request/lookup {},
  154. :logger-start-time 1593532843786,
  155. :body-params
  156. {:name "Test Task",
  157. :type_id 1,
  158. :status_id 1,
  159. :start_date "2007-12-03'T'10:15:30",
  160. :created_by 1,
  161. :users [1]},
  162. :route-params {},
  163. ...}
  164. schema: {:type_id (enum "3" 1 "4" 4 3 2 "1" "2"),
  165. :status_id (enum "3" 1 "4" 4 3 2 "1" "2"),
  166. {:k :is_whole_day} (maybe Bool),
  167. :name java.lang.String,
  168. {:k :time_deleted} (maybe java.time.LocalDateTime),
  169. {:k :time_edited} (maybe java.time.LocalDateTime),
  170. {:k :reminder_date} (maybe java.time.LocalDateTime),
  171. {:k :is_deleted} (maybe Bool),
  172. {:k :description} (maybe Str),
  173. :start_date java.time.LocalDateTime,
  174. ...}
  175. type: :compojure.api.exception/request-validation
  176. value: {:name "Test Task",
  177. :type_id 1,
  178. :status_id 1,
  179. :start_date "2007-12-03'T'10:15:30",
  180. :created_by 1,
  181. :users [1]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement