NestJS:查找异常的请求详细信息

时间:2020-04-17 10:55:46

标签: nestjs

一个错误导致我的NestJS应用程序出现HTTP 500错误。我在日志中有以下堆栈跟踪。 NestJS是否有一个选项记录请求详细信息,例如请求路径和传入的查询参数,可以帮助查明导致问题的原因?

当前,堆栈跟踪中没有请求信息。

[Nest] 58811   - 04/17/2020, 12:51:51 PM   [ExceptionsHandler] invalid input syntax for type uuid: "search" +204214ms
QueryFailedError: invalid input syntax for type uuid: "search"
    at new QueryFailedError (/Users/moo/code/token-swap/backend/node_modules/typeorm/error/QueryFailedError.js:11:28)
    at Query.callback (/Users/moo/code/token-swap/backend/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:176:38)
    at Query.handleError (/Users/moo/code/token-swap/backend/node_modules/pg/lib/query.js:145:17)
    at Connection.connectedErrorMessageHandler (/Users/moo/code/token-swap/backend/node_modules/pg/lib/client.js:214:17)
    at Connection.emit (events.js:311:20)
    at Socket.<anonymous> (/Users/moo/code/token-swap/backend/node_modules/pg/lib/connection.js:134:12)
    at Socket.emit (events.js:311:20)
    at addChunk (_stream_readable.js:294:12)
    at readableAddChunk (_stream_readable.js:275:11)
    at Socket.Readable.push (_stream_readable.js:209:10)

0 个答案:

没有答案