キューに予期しないデータが入っている場合、エンドポイントURLのパースもエラーログの作成も失敗する問題を修正 (MisskeyIO#168)
This commit is contained in:
parent
e9124ca5f4
commit
760fe8cfcc
@ -63,7 +63,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
||||
try {
|
||||
host = new URL(job.data.to).host;
|
||||
} catch (e) {
|
||||
this.apiLoggerService.logger.warn(`failed to parse url '${job.data.to}': ${e}`);
|
||||
this.apiLoggerService.logger.warn(`failed to parse url in ${job.id}: ${e}`);
|
||||
this.apiLoggerService.logger.warn(`id: ${job.id}, data: ${JSON.stringify(job.data)}`);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
||||
try {
|
||||
host = new URL(job.data.signature.keyId).host;
|
||||
} catch (e) {
|
||||
this.apiLoggerService.logger.warn(`failed to parse url '${job.data.signature.keyId}': ${e}`);
|
||||
this.apiLoggerService.logger.warn(`failed to parse url in ${job.id}: ${e}`);
|
||||
this.apiLoggerService.logger.warn(`id: ${job.id}, data: ${JSON.stringify(job.data)}`);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user