我无论如何也想不出如何从liberator中获取异常调试信息。我通过clj-http发起了一个请求,get:
17-05-08 15:26:09 x201 DEBUG [org.apache.http.impl.conn.DefaultClientConnection:128] -
Receiving response: HTTP/1.1 500 Internal Server Error
{:status 500, :headers {"Server" "nginx/1.4.6 (Ubuntu)", "Date" "Mon, 08 May 2017 15:26:09 GMT", "Content-Length" "0", "Connection" "close"},
:body "", :request-time 45,
:trace-redirects ["http://api.mysite.dev/0/projects/Food-Blog/data/Ar6D3PjBZv"], :orig-content-encoding nil}我的中间件列表中有liberator wrap-trace,但它似乎并没有给我带来实际的异常。
发布于 2017-05-09 21:13:43
看看handle-exception处理程序,它将在抛出异常时呈现响应。
https://stackoverflow.com/questions/43851669
复制相似问题