socket.io-client-java icon indicating copy to clipboard operation
socket.io-client-java copied to clipboard

websocket doesn't work on proxy/some wifi/devices?

Open hamberluo opened this issue 11 years ago • 5 comments

Fatal Exception: java.lang.IllegalStateException
state: 4
com.squareup.okhttp.internal.http.HttpConnection.writeRequest (HttpConnection.java:171)
com.squareup.okhttp.internal.http.HttpTransport.writeRequestHeaders (HttpTransport.java:76)

hamberluo avatar Sep 09 '15 02:09 hamberluo

How can we reproduce the issue?

nkzawa avatar Sep 09 '15 03:09 nkzawa

ihave got the same issue, but i do not know how to reproduce it

java.lang.IllegalStateException: state: 4 at com.squareup.okhttp.internal.http.HttpConnection.writeRequest(HttpConnection.java:171) at com.squareup.okhttp.internal.http.HttpTransport.writeRequestHeaders(HttpTransport.java:76) at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:756) at com.squareup.okhttp.Call.getResponse(Call.java:274) at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:230) at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:201) at com.squareup.okhttp.Call.access$100(Call.java:36) at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:164) at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573) at java.lang.Thread.run(Thread.java:841)

joy-jianqiang avatar Sep 16 '15 02:09 joy-jianqiang

Trying an alternative port might solve issue. Switching to port 443 especially with SSL may help.

fatihsokmen avatar Nov 02 '15 21:11 fatihsokmen

Closed due to inactivity. Feel free to reopen.

nkzawa avatar Dec 23 '15 07:12 nkzawa

Happens to me a lot. Tried to find out the reason with no success so far...

Fatal Exception: java.lang.IllegalStateException: state: 4 at com.squareup.okhttp.internal.http.HttpConnection.writeRequest(Bringg:171) at com.squareup.okhttp.internal.http.HttpTransport.writeRequestHeaders(Bringg:76) at com.squareup.okhttp.internal.http.HttpEngine.readResponse(Bringg:745) at com.squareup.okhttp.Call.getResponse(Bringg:268) at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Bringg:224) at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Bringg:195) at com.squareup.okhttp.Call.access$100(Bringg:34) at com.squareup.okhttp.Call$AsyncCall.execute(Bringg:162) at com.squareup.okhttp.internal.NamedRunnable.run(Bringg:33) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)

ronenab avatar Dec 24 '15 08:12 ronenab