diff --git a/database/entities/Status.ts b/database/entities/Status.ts index e62b8ccb..9505a481 100644 --- a/database/entities/Status.ts +++ b/database/entities/Status.ts @@ -273,7 +273,7 @@ export const federateStatus = async (status: StatusWithRelations) => { const response = await fetch(request); if (!response.ok) { - console.error(response.text()); + console.error(await response.text()); throw new Error( `Failed to federate status ${status.id} to ${user.uri}`, ); diff --git a/database/entities/User.ts b/database/entities/User.ts index 8a2d0fac..4b07daf9 100644 --- a/database/entities/User.ts +++ b/database/entities/User.ts @@ -95,7 +95,7 @@ export const followRequestUser = async ( const response = await fetch(request); if (!response.ok) { - console.error(response.text()); + console.error(await response.text()); throw new Error( `Failed to federate follow request from ${follower.id} to ${followee.uri}`, ); diff --git a/server/api/users/[uuid]/inbox/index.ts b/server/api/users/[uuid]/inbox/index.ts index 29bdde05..39d25815 100644 --- a/server/api/users/[uuid]/inbox/index.ts +++ b/server/api/users/[uuid]/inbox/index.ts @@ -201,7 +201,7 @@ export default apiRoute(async (req, matchedRoute, extraData) => { const response = await fetch(request); if (!response.ok) { - console.error(response.text()); + console.error(await response.text()); throw new Error( `Failed to federate follow accept from ${user.id} to ${account.uri}`, );