question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ParamMatcher failed when using parameter with comma

See original GitHub issue

Describe the bug

I’m working on a system that consumes a 3rd party API which accepts as querystring a SQL statement. For example, to query some data from any table just build the URI like this:

  • http://host/api/queryservice?query=SELECT id FROM table WHERE id = 1 While trying to mock this API, I realized that whenever I tried to mock a statement using comma, the ParamMatcher fails. For example, SELECT id, value FROM table WHERE id = 1. And I received a 404 (NotFound) error code.

Expected behavior:

I expected the ParamMatcher has succeded, and returned 200 (OK).

Test to reproduce

1 - Create an API which receives as querystring a SQL statement 2 - Mock that API using “WithParam” function 3 - Test creating a statement which has a ‘comma’ within, “SELECT id, value FROM table WHERE id = 1”

Other related info

Provide additional information if any.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:16

github_iconTop GitHub Comments

1reaction
StefHcommented, Nov 24, 2022

No. Nothing is wrong on your end

I just realized that I need to release a new version which includes this.

I’ll do that now.

0reactions
StefHcommented, Dec 3, 2022

previews are here: https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions

But I’ll release an official version today on nuget.

Read more comments on GitHub >

github_iconTop Results From Across the Web

failed parsing on parameters with comma · Issue #1660
This commit fixes Helm parsing of parameters values containing a comma. The issue was first found as argoproj#1660, and fixed in argoproj#1720. ...
Read more >
SSRS multi-select parameter can't capture values with ...
I have a multi-select parameter that has comma on it's list and my dataset is using a function split for my parameter since...
Read more >
ERROR: More positional parameters found than defined.
Solved: I got this error because that dataset called data contains some questions where there are commas ( , symbol).
Read more >
Comma or ')' expected (Procedure Parameter List)
A parameter list contains an unexpected element. Use commas ( , ) to separate parameters in such a list, and use a closing...
Read more >
Variables with Parameters when the value has a comma ","
Qlik stops to understand where the first parameters ends and the second starts. There are two methods how to resolve this problem:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found