This message was deleted.
# wiremock-java
s
This message was deleted.
t
Hi @Yash Agarwal what type of URL match does that stub have? Might be that you’re attempting to match a URL with a query string using a path only matcher.
y
urlEqualTo. I tried Path and Regex. None are working.
Copy code
-----------------------------------------------------------------------------------------------------------------------
| Closest stub                                             | Request                                                  |
-----------------------------------------------------------------------------------------------------------------------
                                                           |
GET                                                        | GET
[path] /ldap_directory_items/v2/group_members              | /ldap_directory_items/v2/group_members?key=key&name=APP-O
                                                           | AUTH2-ABCD&size=100000
                                                           |
Query: key = key                                           | key: key
Query: name = APP-OAUTH2-ABCD                              | name: APP-OAUTH2-ABCD
Query: size = 100000                                       | size: 100000
                                                           |
                                                           |
-----------------------------------------------------------------------------------------------------------------------
Copy code
-----------------------------------------------------------------------------------------------------------------------
| Closest stub                                             | Request                                                  |
-----------------------------------------------------------------------------------------------------------------------
                                                           |
GET                                                        | GET
[regex] /ldap_directory_items/v2/group_members.*           | /ldap_directory_items/v2/group_members?key=key&name=APP-O
                                                           | AUTH2-ABCD&size=100000
                                                           |
                                                           |
-----------------------------------------------------------------------------------------------------------------------
t
Are you using the latest version of WireMock i.e. 2.35.0?
y
yes.
t
In that case can you share the full stub definition JSON and the request you’re making?