Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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"}
- 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}
- 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]}
- 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}
- 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
- java.util.concurrent.FutureTask.run$$$capture FutureTask.java: 266
- java.util.concurrent.Executors$RunnableAdapter.call Executors.java: 511
- org.httpkit.server.HttpHandler.run RingHandler.java: 115
- /compojure.api.routes.Route routes.clj: 90
- compojure.api.middleware/wrap-inject-data/fn middleware.clj: 100
- ring.middleware.params/wrap-params/fn params.clj: 67
- ring.middleware.nested-params/wrap-nested-params/fn nested_params.clj: 89
- ring.middleware.keyword-params/wrap-keyword-params/fn keyword_params.clj: 53
- muuntaja.middleware/wrap-format-negotiate/fn middleware.clj: 95
- muuntaja.middleware/wrap-format-response/fn middleware.clj: 131
- compojure.api.middleware/wrap-exceptions/fn middleware.clj: 66
- muuntaja.middleware/wrap-format-request/fn middleware.clj: 113
- compojure.api.middleware/wrap-exceptions/fn middleware.clj: 66
- muuntaja.middleware/wrap-params/fn middleware.clj: 51
- compojure.api.middleware/wrap-inject-data/fn middleware.clj: 100
- compojure.api.middleware/wrap-swagger-data/fn middleware.clj: 183
- ring.middleware.conditional/if/fn conditional.clj: 24
- ring.logger/wrap-request-start/fn logger.clj: 37
- ring.logger/wrap-with-logger*/fn logger.clj: 19
- /compojure.api.routes.Route routes.clj: 90
- compojure.core/routes/fn core.clj: 192
- clojure.core/apply core.clj: 667
- ...
- compojure.core/routing core.clj: 182
- compojure.core/routing core.clj: 185
- clojure.core/some core.clj: 2701
- compojure.core/routing/fn core.clj: 185
- /compojure.api.routes.Route routes.clj: 90
- compojure.api.compojure-compat/make-context/fn compojure_compat.clj: 34
- compojure.api.compojure-compat/make-context/handler compojure_compat.clj: 26
- compojure.core/routes/fn core.clj: 192
- clojure.core/apply core.clj: 667
- ...
- compojure.core/routing core.clj: 182
- compojure.core/routing core.clj: 185
- clojure.core/some core.clj: 2701
- compojure.core/routing/fn core.clj: 185
- /compojure.api.routes.Route routes.clj: 90
- compojure.core/routes/fn core.clj: 192
- clojure.core/apply core.clj: 667
- ...
- compojure.core/routing core.clj: 182
- compojure.core/routing core.clj: 185
- clojure.core/some core.clj: 2701
- compojure.core/routing/fn core.clj: 185
- /compojure.api.routes.Route routes.clj: 90
- compojure.api.compojure-compat/make-context/fn compojure_compat.clj: 34
- compojure.api.compojure-compat/make-context/handler compojure_compat.clj: 26
- compojure.core/routes/fn core.clj: 192
- clojure.core/apply core.clj: 667
- ...
- compojure.core/routing core.clj: 182
- compojure.core/routing core.clj: 185
- clojure.core/some core.clj: 2701
- compojure.core/routing/fn core.clj: 185
- /compojure.api.routes.Route routes.clj: 90
- compojure.core/wrap-route-matches/fn core.clj: 146
- compojure.core/wrap-route-info/fn core.clj: 137
- compojure.core/wrap-route-middleware/fn core.clj: 128
- compojure.core/wrap-response/fn core.clj: 158
- kondo.app.api.route.task/fn task.clj: 11
- compojure.api.coercion/coerce-request! coercion.clj: 47
- 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))}}
- coercion: {:name :schema,
- :options
- {:body
- {:default
- #object[clojure.core$constantly$fn__5672 0x41ccc05d "clojure.core$constantly$fn__5672@41ccc05d"],
- :formats
- {"application/json"
- #object[ring.swagger.coerce$json_schema_coercion_matcher 0x6dd77582 "ring.swagger.coerce$json_schema_coercion_matcher@6dd77582"],
- "application/msgpack"
- #object[ring.swagger.coerce$json_schema_coercion_matcher 0x6dd77582 "ring.swagger.coerce$json_schema_coercion_matcher@6dd77582"],
- "application/x-yaml"
- #object[ring.swagger.coerce$json_schema_coercion_matcher 0x6dd77582 "ring.swagger.coerce$json_schema_coercion_matcher@6dd77582"]}},
- :string
- {:default
- #object[ring.swagger.coerce$query_schema_coercion_matcher 0x48cf88d5 "ring.swagger.coerce$query_schema_coercion_matcher@48cf88d5"]},
- :response
- {:default
- #object[clojure.core$constantly$fn__5672 0x7e023632 "clojure.core$constantly$fn__5672@7e023632"]}}}
- errors: {:start_date
- (not (instance? java.time.LocalDateTime a-java.lang.String))}
- in: [:request :body-params]
- request: {:compojure.api.request/muuntaja
- {:negotiate-content-type
- #object[muuntaja.parse$fast_memoize$fn__20873 0x649b5d1e "muuntaja.parse$fast_memoize$fn__20873@649b5d1e"],
- :negotiate-accept
- #object[muuntaja.parse$fast_memoize$fn__20873 0x2455517c "muuntaja.parse$fast_memoize$fn__20873@2455517c"],
- :negotiate-accept-charset
- #object[muuntaja.parse$fast_memoize$fn__20873 0x18dd7f07 "muuntaja.parse$fast_memoize$fn__20873@18dd7f07"],
- :extract-content-type
- #object[muuntaja.core$extract_content_type_ring 0x72760801 "muuntaja.core$extract_content_type_ring@72760801"],
- :extract-accept
- #object[muuntaja.core$extract_accept_ring 0x46df46df "muuntaja.core$extract_accept_ring@46df46df"],
- :extract-accept-charset
- #object[muuntaja.core$extract_accept_charset_ring 0x5517c7 "muuntaja.core$extract_accept_charset_ring@5517c7"],
- :encode-response-body?
- #object[compojure.api.middleware$encode_QMARK_ 0x709a0f1b "compojure.api.middleware$encode_QMARK_@709a0f1b"],
- :decode-request-body?
- #object[clojure.core$constantly$fn__5672 0x186792ac "clojure.core$constantly$fn__5672@186792ac"],
- :produces
- #{"application/json" "application/transit+msgpack"
- "application/transit+json" "application/edn"},
- :consumes
- #{"application/json" "application/transit+msgpack"
- "application/transit+json" "application/edn"},
- ...},
- :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"}}],
- :compojure.api.request/paths
- {:paths
- {"/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"),
- {:k :is_whole_day} (maybe Bool),
- :name java.lang.String,
- {:k :time_deleted} (maybe java.time.LocalDateTime),
- {:k :time_edited} (maybe java.time.LocalDateTime),
- {:k :reminder_date} (maybe java.time.LocalDateTime),
- {:k :is_deleted} (maybe Bool),
- {:k :description} (maybe Str),
- :start_date java.time.LocalDateTime,
- ...}}}}}},
- :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]},
- :route-params {},
- ...}
- schema: {:type_id (enum "3" 1 "4" 4 3 2 "1" "2"),
- :status_id (enum "3" 1 "4" 4 3 2 "1" "2"),
- {:k :is_whole_day} (maybe Bool),
- :name java.lang.String,
- {:k :time_deleted} (maybe java.time.LocalDateTime),
- {:k :time_edited} (maybe java.time.LocalDateTime),
- {:k :reminder_date} (maybe java.time.LocalDateTime),
- {:k :is_deleted} (maybe Bool),
- {:k :description} (maybe Str),
- :start_date java.time.LocalDateTime,
- ...}
- type: :compojure.api.exception/request-validation
- value: {:name "Test Task",
- :type_id 1,
- :status_id 1,
- :start_date "2007-12-03'T'10:15:30",
- :created_by 1,
- :users [1]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement