Giter Site home page Giter Site logo

Comments (4)

jbarton123 avatar jbarton123 commented on June 19, 2024 1

Hi @bethesque - reviving an old thread here. I've noticed that this is still happening when using matchers that generate a regex pattern. I've been using the PHP Pact library and using matchers such as uuid() or dateTimeISO8601() seem to cause the service to hang.

I noticed when trying to send a curl request once it has hanged, I receive a connection refused so it is like the service has entered an unhealthy state.

What is really interesting is that this has only happened since I have hit a larger number of pacts (I have ~26 pacts to verify against now). When I remove any one of these, it seems to run ok again.

However, when I have replaced these regex matchers with the like() matcher (which I believe just checks for a matching type) this resolves the issue, the service doesn't hang and successfully verifies against all 26 pacts.

from pact-mock_service.

bethesque avatar bethesque commented on June 19, 2024

Bizarre, haven't had that before. One thing to look at is that it uses JSON.load(because sometimes there are embedded Ruby classes eg. Pact::Term) not JSON.parse.

from pact-mock_service.

bethesque avatar bethesque commented on June 19, 2024

Any news on this one?

from pact-mock_service.

bethesque avatar bethesque commented on June 19, 2024

The uuid and dateTimeISO8601 aren't natively supported, so they must be wrappers for "terms" provided by the pact php library. Can you see if you can recreate it using https://github.com/pact-foundation/pact-ruby-standalone-e2e-example ?

from pact-mock_service.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.