Skip to content

Conversation

@cheer4chai
Copy link

fastify默认的clientError(如请求header过长)会直接拒绝并返回400,没有任何错误日志,参考文档增加了一个fatal log:https://fastify.dev/docs/latest/Reference/Server/#clienterrorhandler

@cheer4chai
Copy link
Author

框架暂不感知此类错误,改由需要的业务方在业务逻辑中监听clientError自行进行判断

@cheer4chai cheer4chai closed this Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants