ring

grierson 2018-09-14T08:52:47.000100Z

How do I log incoming request params so that I can debug why I am getting a nil response?

grierson 2018-09-14T09:01:58.000100Z

grierson 2018-09-14T09:12:28.000100Z

seancorfield 2018-09-14T15:03:58.000100Z

That says syntax error on line 32 of app.clj... @grierson

grierson 2018-09-14T15:09:32.000100Z

@seancorfield I manged to work it out, it's because compojure was destructing request looking for a :request key causing nil to be passed into the handler. However being able to log the incoming request and params would of helped.

borkdude 2018-09-14T15:12:24.000100Z

I’m not sure lib-noir should still be used, but there was a question asked on SO: https://stackoverflow.com/questions/52334131/why-is-username-not-saved-in-noir-session-in-clojure-project Maybe someone can recommend a better current day approach

borkdude 2018-09-14T15:12:36.000100Z

Seems to me that lib-noir is very old and abandoned

dbernal 2018-09-14T16:22:22.000100Z

is it possible to maintain order for a map in a response while utilizing the compojure api "return" parameter with a defined schema? I'm running into an issue where I would like to validate the outgoing response but when I do this it re-orders it

borkdude 2018-09-14T20:59:09.000100Z

@dbernal maps aren’t ordered collections

borkdude 2018-09-14T21:00:01.000100Z

if you want to have a specific order, use a seq of tuples or a sorted-map

dbernal 2018-09-14T23:09:09.000100Z

@borkdude I have a sorted map but the problem I'm having right now is that when I coerce a response value through compojure api it seems to re-order my map and I haven't been able to get around that. When I take off the coercion it maintains the order