0

我一生都无法弄清楚如何从解放者那里获取异常调试信息。我通过 clj-http 发出请求并得到:

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}

我的中间件列表中有解放者wrap-trace,它似乎没有给我实际的异常。

4

1 回答 1

0

查看handle-exception处理程序,如果抛出异常,它将呈现响应。

于 2017-05-09T13:13:42.843 回答