Code Monkey home page Code Monkey logo

Comments (9)

mrak avatar mrak commented on May 18, 2024

I believe this is because stubby interprets configured values as regular expressions. Is there something in particular within the body you want to match on instead of the entire body?

from stubby4j.

itzmanjeet avatar itzmanjeet commented on May 18, 2024

Yes, we need to match few unique identifiers in some elements of the request body xml. These identifiers can across multiple line in request body as elements can increase or decrease based on the request.

Like in the request body we want to match few element values like senderId, ID , passcode. Say if the senderId=adcdc, ID= 123455667 and passcode=passcode1, then only response should be returned.

from stubby4j.

itzmanjeet avatar itzmanjeet commented on May 18, 2024

Hi Mrak,

Can please suggest some thing which can help to get around this problem.

Thanks,
Manjeet

from stubby4j.

itzmanjeet avatar itzmanjeet commented on May 18, 2024

Can anyone please provide any help on our issue?

Thanks,
Manjeet

from stubby4j.

mrak avatar mrak commented on May 18, 2024

Can you post your YAML of the endpoint you're trying to match?

XML was some characters (like '?') that are meaningful in regular expressions. You will have to escape these characters for them to be interpreted literally.

from stubby4j.

itzmanjeet avatar itzmanjeet commented on May 18, 2024

Thanks Eric for this, using escape character before ? worked.

We need your help regarding regex pattern as well. In our case the request body posted on the stubby4j side span across multiple lines. We need a regex pattern to match few unique identifiers in mutli line request body. We formed a pattern that can match the identifier across multiple lines, however whenever the identifier is not present there in the request body, this regex pattern goes into kind of infinite loop and doesn't comes back. Our regex pattern is failing for negative scenario i.e. no match. Is there a regex pattern in which both the cases work for match and no match ?

from stubby4j.

itzmanjeet avatar itzmanjeet commented on May 18, 2024

Please let us know if you anybody can help us on this ?

from stubby4j.

mrak avatar mrak commented on May 18, 2024

I can't imagine a regular expression going into an infinite loop.

Could you post the exact endpoint you have configured in your YAML and the types of requests you are making?

It sounds like a matter of how to represent your regular expression

from stubby4j.

azagniotov avatar azagniotov commented on May 18, 2024

Closing due to no response

from stubby4j.

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.