enhance: ActivityPub 周りで 429 を受け取った際にリトライするように (MisskeyIO#324)
This commit is contained in:
parent
f1b7f3425e
commit
397e056b1e
6 changed files with 8 additions and 6 deletions
|
@ -85,7 +85,7 @@ export class InboxProcessorService {
|
|||
} catch (err) {
|
||||
// 対象が4xxならスキップ
|
||||
if (err instanceof StatusError) {
|
||||
if (err.isClientError) {
|
||||
if (!err.isRetryable) {
|
||||
throw new Bull.UnrecoverableError(`skip: Ignored deleted actors on both ends ${activity.actor} - ${err.statusCode}`);
|
||||
}
|
||||
throw new Error(`Error in actor ${activity.actor} - ${err.statusCode}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue