You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering an issue while running consumer contract tests using the pact library version 4.1.4 in my Kotlin project. During the execution of the test, I am consistently receiving a NoHttpResponseException with the error message: "localhost:9020 failed to respond.
Below are the dependencies that I am using in my gradle project:
Plugins
Kotlin 1.6.20
au.com.dius.pact plugin version 4.1.4
Spring Boot 2.7.12
io.spring.dependency-management version 1.0.11.RELEASE
Test Dependencies:
au.com.dius:pact-jvm-consumer-junit5:4.0.10
au.com.dius:pact-jvm-provider-junit5:4.0.10
stack trace:
18:03:52.682 [HTTP-Dispatcher] DEBUG au.com.dius.pact.core.matchers.RequestMatching - Request mismatch: []
18:03:52.690 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "end of stream"
18:03:52.692 [Test worker] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-1: Close connection
18:03:52.693 [Test worker] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-1: Shutdown connection
18:03:52.694 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection discarded
18:03:52.697 [Test worker] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 0][route: {}->http://localhost:9020/][total available: 0; route allocated: 0 of 100; total allocated: 0 of 200]
18:04:11.402 [Test worker] DEBUG au.com.dius.pact.consumer.BaseJdkMockServer - Mock server shutdown
[Test worker] DEBUG au.com.dius.pact.consumer.BaseJdkMockServer - Mock server shutdown
localhost:9020 failed to respond
org.apache.http.NoHttpResponseException: localhost:9020 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)
at app//org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
at app//org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at app//org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at app//org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at app//org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at app//org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at app//org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at app//org.apache.http.client.fluent.Request.internalExecute(Request.java:173)
at app//org.apache.http.client.fluent.Request.execute(Request.java:177)
Any help would Be appreciated.
The text was updated successfully, but these errors were encountered:
I am encountering an issue while running consumer contract tests using the pact library version 4.1.4 in my Kotlin project. During the execution of the test, I am consistently receiving a NoHttpResponseException with the error message: "localhost:9020 failed to respond.
Below are the dependencies that I am using in my gradle project:
Plugins
Kotlin 1.6.20
au.com.dius.pact plugin version 4.1.4
Spring Boot 2.7.12
io.spring.dependency-management version 1.0.11.RELEASE
Test Dependencies:
au.com.dius:pact-jvm-consumer-junit5:4.0.10
au.com.dius:pact-jvm-provider-junit5:4.0.10
stack trace:
18:03:52.682 [HTTP-Dispatcher] DEBUG au.com.dius.pact.core.matchers.RequestMatching - Request mismatch: []
18:03:52.690 [Test worker] DEBUG org.apache.http.wire - http-outgoing-1 << "end of stream"
18:03:52.692 [Test worker] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-1: Close connection
18:03:52.693 [Test worker] DEBUG org.apache.http.impl.conn.DefaultManagedHttpClientConnection - http-outgoing-1: Shutdown connection
18:03:52.694 [Test worker] DEBUG org.apache.http.impl.execchain.MainClientExec - Connection discarded
18:03:52.697 [Test worker] DEBUG org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection released: [id: 0][route: {}->http://localhost:9020/][total available: 0; route allocated: 0 of 100; total allocated: 0 of 200]
18:04:11.402 [Test worker] DEBUG au.com.dius.pact.consumer.BaseJdkMockServer - Mock server shutdown
[Test worker] DEBUG au.com.dius.pact.consumer.BaseJdkMockServer - Mock server shutdown
localhost:9020 failed to respond
org.apache.http.NoHttpResponseException: localhost:9020 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)
at app//org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272)
at app//org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at app//org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at app//org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at app//org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at app//org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at app//org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at app//org.apache.http.client.fluent.Request.internalExecute(Request.java:173)
at app//org.apache.http.client.fluent.Request.execute(Request.java:177)
Any help would Be appreciated.
The text was updated successfully, but these errors were encountered: