浏览代码

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

Karol Sójko 1 年之前
父节点
当前提交
002074e4d1
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      packages/websockets/src/Infra/WebSockets/WebSocketsClientMessenger.ts

+ 3 - 1
packages/websockets/src/Infra/WebSockets/WebSocketsClientMessenger.ts

@@ -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)}`,
         )
       }
     }