java.net.ProtocolException

Expected HTTP 101 response but was '200 OK'

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web4

  • via GitHub by akroston
    ,
  • Stack trace

    • java.net.ProtocolException: Expected HTTP 101 response but was '200 OK' at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:122)[com.squareup.okhttp3.okhttp-ws-3.4.1.jar:na] at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41)[com.squareup.okhttp3.okhttp-ws-3.4.1.jar:na] at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97)[com.squareup.okhttp3.okhttp-ws-3.4.1.jar:na] at okhttp3.RealCall$AsyncCall.execute(RealCall.java:126)[com.squareup.okhttp3.okhttp-3.4.1.jar:na] at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)[com.squareup.okhttp3.okhttp-3.4.1.jar:na] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_102] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_102] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_102]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.