This message was deleted.
# help
s
This message was deleted.
t
It looks to me like you’re setting the
root-dir
parameter 1 level too deep. Try chopping the
mappings
part of the end.
Also 2.9.0 is truly ancient. I’d definitely recommend updating at least to the latest 2.x version - 2.35.0
v
Thank you @Tom, it indeed fixed that issue. Now, I see that I have another issue with the request mapping
Copy code
"request": {
  "method": "GET",
  "urlPattern": "/test-in-int/cars?limit=300"
},
"response": {
  "status": 200,
  "headers": {
    "Content-Type": "application/json"
  },
  "body": "{\n   \"limit\":1,\n   \"offset\":0,\n   \"count\":1,\n   \"total\":441,\n   \"results\":[\n      {\n         \"id\":\"e4841772-bb61-4a5d-8715-98c844667a2d\",\n         \"version\":474,\n ........
but when I try to call the mock using the pattern mapped, I get the following error (in image). I do not seem to find answers online except changing urlPattern to urlPathPattern. Do you know what could be the issue with this?
t
Since your URL is a literal not a regex use
"url"
instead of
"urlPattern"
❤️ 1
v
Thanks Tom! it works 🙂