1
0
mirror of https://git.boykissers.com/pawkey/pawkey-sk.git synced 2025-12-20 12:14:18 +00:00

recognize more retryable errors when resolving actor for signature verification

This commit is contained in:
Hazelnoot
2025-03-03 00:51:46 -05:00
parent 1c48d3eef9
commit a10885ae95

View File

@@ -146,12 +146,11 @@ export class InboxProcessorService implements OnApplicationShutdown {
authUser = await this.apDbResolverService.getAuthUserFromApId(actorId);
} catch (err) {
// 対象が4xxならスキップ
if (err instanceof StatusError) {
if (!err.isRetryable) {
throw new Bull.UnrecoverableError(`skip: Ignored deleted actors on both ends ${actorId} - ${err.statusCode}`);
}
throw new Error(`Error in actor ${actorId} - ${err.statusCode}`);
if (!isRetryableError(err)) {
throw new Bull.UnrecoverableError(`skip: Ignored deleted actors on both ends ${actorId}`);
}
throw err;
}
}