Don Kittle
08/12/2023, 2:41 AMSending WebSocket request [object Object]
I then see the logging output from the HTTP Client logger:
HttpClient: REQUEST: <ws://localhost:8080/story-log/aee6d73d-a6ee-48cb-a614-30424501fda7/50256788-5ca0-4776-b65e-08679e93ad48>
METHOD: HttpMethod(value=GET)
COMMON HEADERS
-> Accept: */*
-> Accept-Charset: UTF-8
CONTENT HEADERS
-> Connection: upgrade
-> Sec-WebSocket-Key: MzRhYzYzNDNiNzIzMjY1ZA==
-> Sec-WebSocket-Version: 13
-> Upgrade: websocket
BODY Content-Type: null
BODY START
BODY END
Sometimes (minutes later), I'll get an error (from JsClientEngine.kt:75
) saying:
HttpClient: REQUEST <ws://localhost:8080/story-log/aee6d73d-a6ee-48cb-a614-30424501fda7/50256788-5ca0-4776-b65e-08679e93ad48> failed with exception: WebSocketException: {"target":{},"type":"error","isTrusted":true}
When I try the same request from PostMan, the connection is successful.
Anyone have any idea what I'm doing wrong here?