Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WS api quickly running into issues. #38

Open
Swoorup opened this issue Apr 7, 2021 · 3 comments
Open

WS api quickly running into issues. #38

Swoorup opened this issue Apr 7, 2021 · 3 comments

Comments

@Swoorup
Copy link

Swoorup commented Apr 7, 2021

I quickly run into exception such as follows when using the ws client.

    val kucoinPublicWSClient = builder.buildPublicWSClient()
    kucoinPublicWSClient.onMatchExecutionData(trade => println(trade), "XRP-USDT")
03:08:58.050 [OkHttp https://push-private.kucoin.com/...] ERROR c.k.s.w.l.KucoinPublicWebsocketListener - Error on private socket
java.io.EOFException: null
        at okio.RealBufferedSource.require(RealBufferedSource.java:61)
        at okio.RealBufferedSource.readByte(RealBufferedSource.java:74)
        at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.java:117)
        at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:101)
        at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:274)
        at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:214)
        at okhttp3.RealCall$AsyncCall.execute(RealCall.java:206)
        at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
@Parker7123
Copy link

#41 resolves this

@denistorresan
Copy link

Hi, please try to apply my PR #56

@Wayruha
Copy link

Wayruha commented Nov 14, 2022

@denistorresan, great answer, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants