gpt4 book ai didi

php - 错误日志在 laravel 5.3 中被截断

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:53:43 25 4
gpt4 key购买 nike

我的 laravel 5.3 日志中有这个条目

2016-12-22 17:23:37] local.ERROR: GuzzleHttp\Exception\ClientException: Client error: POST
https://api.sparkpost.com/api/v1/transmissions
resulted in a 400 Bad
Request
response: { "errors": [ { "message": "Message generation rejected", "description": "recipient address suppressed due to customer p (truncated...)

为什么它会截断重要的错误消息?现在我不知道出了什么问题......

最佳答案

因为您的请求抛出 Guzzle 异常,作为解决方法,您可以简单地尝试:

$e->getResponse()->getBody()->getContents();

如果不想修改report()方法。

对我来说很好。

关于php - 错误日志在 laravel 5.3 中被截断,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41293050/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com