Closed zgq354 closed 2 years ago
准备用 patch 的方案修复第三方的依赖 https://github.com/cweagans/composer-patches
对应代码
/**
* Check sent results.
*
* @var MessageSentReport $report
*/
foreach ($webPush->flush() as $report) {
if (!$report->isSuccess() && in_array($report->getResponse()->getStatusCode(), [401, 403, 404, 410])) {
PushSubscription::where('endpoint', $report->getEndpoint())->delete();
} elseif (!$report->isSuccess()) {
echo "[x] Message failed to sent for subscription {$report->getEndpoint()}: {$report->getReason()}";
} else {
$sentCounter++;
}
}
fixed,在响应发送前 echo 也会导致报错 https://github.com/0xffff-one/0xffff-flarum/commit/36ab8a798116d55c9e01debfcda7aa7cff857e95
error log:
导致回复超时的问题,可能与它有关系:https://github.com/0xffff-one/0xffff-flarum/issues/28