Fork me on GitHub
#ring
<
2018-03-13
>
nakiya05:03:23

I have a compojure api, I get a request from a device to the endpoint. The log is something like this:

2018-03-13 05:27:11,846 [XNIO-1 task-6] INFO  ring.logger.tools-logging - Starting :post /api/comms/new_packet for 115.42.250.66 {"connection" "close", "accept" "application/json", "keep-alive" "timeout=30", "from" "xxxxx", "content-type" "application/json", "content-length" "217", "user-agent" "curl/7.54.0", "host" "xxxxx"}
2018-03-13 05:27:11,847 [XNIO-1 task-6] DEBUG ring.logger.tools-logging - Request details: {:remote-addr "xxxxx", :server-port 8000, :content-length 217, :content-type "application/json", :character-encoding "ISO-8859-1", :uri "/api/comms/new_packet", :server-name "xxxxx", :query-string nil, :scheme :http, :request-method :post}
2018-03-13 05:27:11,847 [XNIO-1 task-6] INFO  ring.logger.tools-logging -   \ - - - -  Params: {}
After this, there’s nothing. No response, and my handler is not invoked. If I send a request from swagger ui to this endpoint, I see the response in the logs after that last line. I am sure that this is a bug in the device’s request. I only want to know how to get details on server side why the request is not reaching the handler. Any logging/debugging methods to find this out?