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
When i try to POST a v4Pact to the /create endpoint, i get the following error in the log of the pact-jvm-server:
java.lang.ClassCastException: class au.com.dius.pact.core.model.V4Pact cannot be cast to class au.com.dius.pact.core.model.RequestResponsePact (au.com.dius.pact.core.model.V4Pact and au.com.dius.pact.core.model.RequestResponsePact are in unnamed module of loader 'app')
I tried with different Versions of the pact-jvm-server, the error appears in all versions, including 4.6.14.
When i try to POST a v4Pact to the /create endpoint, i get the following error in the log of the pact-jvm-server:
java.lang.ClassCastException: class au.com.dius.pact.core.model.V4Pact cannot be cast to class au.com.dius.pact.core.model.RequestResponsePact (au.com.dius.pact.core.model.V4Pact and au.com.dius.pact.core.model.RequestResponsePact are in unnamed module of loader 'app')
I tried with different Versions of the pact-jvm-server, the error appears in all versions, including 4.6.14.
The error can be reproduced with this pact:
{ "consumer": { "name": "consumer" }, "provider": { "name": "provider" }, "metadata": { "pactSpecification": { "version": "4.0.0" } }, "interactions": [ { "type": "Synchronous/HTTP", "description": "Test", "providerStates": [ { "name": "State" } ], "request": { "method": "GET", "path": "/endpoint" }, "response": { "body": { "content": { "key": "value" } }, "headers": { "Content-Type": "application/json" }, "status": 200 } } ] }
The text was updated successfully, but these errors were encountered: