From 43f3f8a05883f5bbaca6fce1b45ada7228b15e4c Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Thu, 12 Dec 2019 00:41:26 +0900 Subject: [PATCH] Resolve syuilo#5548 (#5607) --- src/remote/activitypub/resolver.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/remote/activitypub/resolver.ts b/src/remote/activitypub/resolver.ts index 5b8224453..8688b79a4 100644 --- a/src/remote/activitypub/resolver.ts +++ b/src/remote/activitypub/resolver.ts @@ -51,6 +51,13 @@ export default class Resolver { Accept: 'application/activity+json, application/ld+json' }, json: true + }).catch(e => { + const message = `${e.name}: ${e.message ? e.message.substr(0, 200) : undefined}, url=${value}`; + throw { + name: e.name, + statusCode: e.statusCode, + message, + }; }); if (object == null || (