diff --git a/src/remote/activitypub/resolver.ts b/src/remote/activitypub/resolver.ts index 5b82244536..8688b79a40 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 || (