diff --git a/common/src/main/java/ctbrec/sites/mfc/MyFreeCamsClient.java b/common/src/main/java/ctbrec/sites/mfc/MyFreeCamsClient.java index 3ba73d0a..6023fa54 100644 --- a/common/src/main/java/ctbrec/sites/mfc/MyFreeCamsClient.java +++ b/common/src/main/java/ctbrec/sites/mfc/MyFreeCamsClient.java @@ -158,7 +158,9 @@ public class MyFreeCamsClient { connecting = false; sessionStates.invalidateAll(); models.invalidateAll(); - LOG.trace("open: [{}]", response.body().string()); + // WebSocketListener's response body is stripped, so we cannot call .string() on it (remove the line maybe?) + var body = response.body(); + LOG.trace("open: [{}]", body.contentLength() != 0 ? body.string() : ""); webSocket.send("fcsws_20180422\n"); login(webSocket); heartBeat = System.currentTimeMillis();