square / okhttp

Square’s meticulous HTTP client for the JVM, Android, and GraalVM.
https://square.github.io/okhttp/
Apache License 2.0
45.74k stars 9.15k forks source link

Getting NoHttpResponseException on every second run #7793

Closed FeanorsCurse closed 1 year ago

FeanorsCurse commented 1 year ago

I am getting a NoHttpResponseException on every second run, it seems to be very similar to this issue: https://github.com/mock-server/mockserver/issues/509

I cannot really provide a sample failing test, as I don't know the combination in which this occurs and cannot paste our existing code base.

Caused by: org.apache.http.NoHttpResponseException: localhost:3003 failed to respond at app//org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:141) at app//org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:56) at app//org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:259) at app//org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:163) at app//org.apache.http.impl.conn.CPoolProxy.receiveResponseHeader(CPoolProxy.java:157) at app//org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:273) at app//org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)

yschimke commented 1 year ago

This doesn't appear to be OkHttp

Isn't this for https://hc.apache.org/

yschimke commented 1 year ago

Please provide a stacktrace or test reproducing it. Not actionable as is.

FeanorsCurse commented 1 year ago

Will try, thank you.