Description
Specmatic proxy command is returning this error for curl requests curl: (56) Recv failure: Connection reset by peer
Steps to reproduce
Run proxy command as shown below and point it to any server that you would like to record
docker run -p 9000:9000 -v ./contracts:/usr/src/app/contracts:rw znsio/specmatic:1.3.20 proxy --target http://host.docker.internal:8090/ ./contracts/recorded
Run curl command to hit the proxy server
curl http://localhost:9000/products
I see this error.
curl: (56) Recv failure: Connection reset by peer
Expected behavior
The request is proxied through to the target server and upon stopping the proxy the interactions are captured as an OpenAPI file in ./contracts/recorded folder.
Description Specmatic proxy command is returning this error for curl requests
curl: (56) Recv failure: Connection reset by peer
Steps to reproduce
docker run -p 9000:9000 -v ./contracts:/usr/src/app/contracts:rw znsio/specmatic:1.3.20 proxy --target http://host.docker.internal:8090/ ./contracts/recorded
curl http://localhost:9000/products
curl: (56) Recv failure: Connection reset by peer
Expected behavior The request is proxied through to the target server and upon stopping the proxy the interactions are captured as an OpenAPI file in
./contracts/recorded
folder.System Information: