mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: stringify error body in ap.send
This commit is contained in:
@@ -235,7 +235,7 @@ ActivityPub.send = async (type, id, targets, payload) => {
|
|||||||
if (String(response.statusCode).startsWith('2')) {
|
if (String(response.statusCode).startsWith('2')) {
|
||||||
winston.verbose(`[activitypub/send] Successfully sent ${payload.type} to ${uri}`);
|
winston.verbose(`[activitypub/send] Successfully sent ${payload.type} to ${uri}`);
|
||||||
} else {
|
} else {
|
||||||
winston.warn(`[activitypub/send] Could not send ${payload.type} to ${uri}; error: ${body}`);
|
winston.warn(`[activitypub/send] Could not send ${payload.type} to ${uri}; error: ${String(body)}`);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
winston.warn(`[activitypub/send] Could not send ${payload.type} to ${uri}; error: ${e.message}`);
|
winston.warn(`[activitypub/send] Could not send ${payload.type} to ${uri}; error: ${e.message}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user