Andrei
07/10/2025, 8:38 PMmap<string, any> . My response looks like
"data": {
"price": {
"@type": "type.googleapis.com/google.protobuf.DoubleValue",
"value": 0.00873388535031847
}
},
"user": {
"userId": "5235435"
}
But wiremock throw an exception:
wiremock.com.google.protobuf.InvalidProtocolBufferException: Cannot resolve type: type.googleapis.com/google.protobuf.DoubleValue at wiremock.com.google.protobuf.util.JsonFormat$ParserImpl.mergeAny(JsonFormat.java:1511) at wiremock.com.google.protobuf.util.JsonFormat$ParserImpl.access$2000(JsonFormat.java:1276) at wiremock.com.google.protobuf.util.JsonFormat$ParserImpl$1.merge(JsonFormat.java:1343) at wiremock.com.google.protobuf.util.JsonFormat$ParserImpl.merge(JsonFormat.java:1432) at wiremock.com.google.protobuf.util.JsonFormat$ParserImpl.parseFieldValue(JsonFormat.java:1995)
Any clue what's wrong?Daniel
07/16/2025, 4:20 AMJush Jiang
07/18/2025, 8:51 AMViteker
07/21/2025, 6:02 PMHariharasudan Muthukumar
07/23/2025, 10:03 AMHariharasudan Muthukumar
07/24/2025, 12:50 AMSlackbot
07/24/2025, 7:18 PMSlackbot
07/24/2025, 7:23 PMAleksei Parfentjev
07/29/2025, 7:06 PMwireMock.stubFor(<http://WireMock.post|WireMock.post>("/convert")
.withFormParam("amount", WireMock.equalTo("10.50"))
.willReturn(responseDefinition1));
wireMock.stubFor(<http://WireMock.post|WireMock.post>("/convert")
.withFormParam("amount", WireMock.equalTo("12.50"))
.willReturn(responseDefinition2));
However, the amount can easily be 10.5 or 12.5 due to inconsistent precision, and that doesn't work - 10.50 and 10.5 are different strings. I solved this by extending StringValuePattern and overriding it's matcher which now converts both values to BigDecimal and compares them with compareTo.
My concern is that I perhaps overengineered this and missed a simpler solution. Is there one to compare decimal values in form params?
I only found a similar issue with JSON bodies: https://github.com/wiremock/wiremock/pull/2588Paulo Lory
08/06/2025, 10:24 AMSuresh
08/08/2025, 8:23 AM--no-gzip
Description:
I'm running WireMock via Docker and trying to disable gzip compression because my client needs uncompressed responses.
I've tried:
1. Setting the environment variable:
docker run -d \
--name wiremock \
-p 8080:8080 \
-e WIREMOCK_NO_GZIP=true \
wiremock/wiremock:latest
…but the responses still contain Content-Encoding: gzip.
2. Passing --no-gzip as a CLI flag:
docker run --rm -it \
-p 8083:8080 \
wiremock/wiremock:3.9.1 \
--verbose --no-gzip
…but the container immediately exits with: Exception in thread "main" java.util.MissingResourceException thrown from the UncaughtExceptionHandler in thread "main"
1. 3. Using older versions (e.g., 2.35.0) with --no-gzip results in:
pgsql
joptsimple.UnrecognizedOptionException: no-gzip is not a recognized option
W*hat I’ve confirmed:*
• Docker image pulls and runs fine without --no-gzip.
• Problem only occurs when trying to disable gzip.
• Removing containers and images before retrying doesn’t fix it.
Questions for the community:
• What is the correct way to disable gzip in the latest WireMock Docker image?
• Is --no-gzip supported in the official Docker images, and if so, from which version?
• Could the MissingResourceException be a packaging issue in recent releases?Thomas Stein
08/12/2025, 4:05 PM/mappings and /files folder with a shared storage to each other. This work very well, but the other instances did not refresh the instance caches with the stored mappings. Is there a configuration/setting that could help in this case?mei n
08/13/2025, 3:15 AMJoe Williams
08/13/2025, 6:33 PMjava.io.FileNotFoundException: /home/wiremock/./__files/responses which makes sense because it seems like that path is incorrect. The problem is I can't figure out how to correct it.
I've defined wiremock in my docker compose (defined at .docker/compose.yml as follows:
wiremock:
image: wiremock/wiremock:3.12.1
container_name: wiremock
ports:
- "3000:8080"
volumes:
- ../wire-mock:/home/wiremock
entrypoint: ["/docker-entrypoint.sh", "--global-response-templating", "--disable-gzip", "--verbose"]
my wiremock directory is a top level directory at wire-mock in the project
Any help would be greatly appreciated. thanks y'allTimur Sataev
08/18/2025, 10:36 AMCelina Kincaid
08/21/2025, 4:44 PMJoão Farias
09/03/2025, 1:59 PMGomathi Marimuthu
09/08/2025, 11:22 AMsurya megham
09/10/2025, 12:22 PMexist field inside the auth object but when i pass the below pattern in mapping then it should point to different file but it is not doing - for both true and false it is going to same file, that is because it always maps to the same mapping irrespective i give true or false
im using gradel deps --> implementation "com.github.tomakehurstwiremock jre8 standalone2.35.1
"bodyPatterns": [
{
"matchesJsonPath": {
"expression": "$.auth.exist",
"absent": "false"
}
}
]Mina Medic
09/12/2025, 8:17 AMAlona Sapiro Haitovich
09/16/2025, 7:00 AMDhruvraj Mishra
09/25/2025, 4:30 PMService A utilises org.springframework.http to call APIs.
It is failing at the line of toEntity()-.retrieve()`
.toEntity(String.class);
Other services like B uses apache camel(routes), from there when it is invoked it is working. Just wanted to understand is this any mock related issue or it do not support http of spring.Oumaima
09/26/2025, 10:18 AMТимур Вольных
09/30/2025, 3:50 PMMatt Pascual
10/03/2025, 10:11 PMUgo El Koubi
10/07/2025, 9:04 PMMarcel Scheck
10/08/2025, 6:54 AMcode. I use serveEventListeners to trigger a call. This call needs to extract the sub claim from the JWT and include it as user_id to body. I tried it with the jwt plugin like this {{jwt path='sub' token=originalRequest.query.code}} but it generated a new jwt, what is not really what I need. Is there any way to only extract that claim from the token?Rajesh Singh
10/22/2025, 9:51 PMDavid Micheau
11/10/2025, 10:20 AMContent-Type: multipart/form-data to wiremock, as it's the only accepted content-type accepted by my real third-party.
Using only basic JSON stub, is it possible to extract the body from the request and pass it to a webhook body ?
When I post my request with content-type application/json , the following stub works very well and I receive the transcript_id from the original request. But as soon as I send the original request with multipart/form-data, it doesn't work anymore :
{
"request": ...,
"response": ...,
"serveEventListeners": [
{
"name": "webhook",
"parameters": {
...
"body": "{\"transcript_id\":\"{{jsonPath originalRequest.body '$.transcript_id'}}\"}"
}
}
]
}Gary Gregory
11/13/2025, 11:35 AM