mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
recognize more retryable errors when resolving actor for signature verification
This commit is contained in:
parent
1c48d3eef9
commit
a10885ae95
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue