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