fix(websockets): stringify response from the AWS Api Gateway

This commit is contained in:
Karol Sójko 2023-09-04 12:32:47 +02:00
parent 45b55068f9
commit 002074e4d1
No known key found for this signature in database
GPG key ID: C2F813669419D05F

View file

@ -35,7 +35,9 @@ export class WebSocketsClientMessenger implements ClientMessengerInterface {
})
if (response.status !== 200) {
this.logger.error(
`Could not send message to connection ${connectionUuid} for user ${userUuid}. Response status code: ${response.status}. Response body: ${response.data}`,
`Could not send message to connection ${connectionUuid} for user ${userUuid}. Response status code: ${
response.status
}. Response body: ${JSON.stringify(response.data)}`,
)
}
}