castlemock icon indicating copy to clipboard operation
castlemock copied to clipboard

Request Query match Get args Error 500

Open LeCoqGildas opened this issue 1 year ago • 0 comments

Hello, I need to return a different response based on a GET url param

http://mymockaddress/service?param1={valuetest}

If valuetest=value1 -> response1, if valuetest=value2 other response etc...

After configuring Response strategy=Parameter query match One response 1 configure my Parameter Query with

  • Parameter = valuetest
  • query = value1
  • Match Case X One response 2 configure my Parameter Query with
  • Parameter = valuetest
  • query = value2
  • Match Case X

With Postman test i alwayse get an return 500

When i dont use ?something={valuetest} but /{valuetest} it's works

methodeConf

parameterQueries

postmanTest

In docker container, i see nothing in catalina log :/

Can you investigate what is wrong please? Thanks, Regards,

LeCoqGildas avatar Apr 30 '24 12:04 LeCoqGildas