mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 14:20:29 +01:00
Newtonsoft.Json.JsonReaderException: 'Unable to read the JSON string.' when using IStringMatcher with an empty body #682
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jollyjoyce1995 on GitHub (Apr 16, 2025).
Describe the bug
When using the IStringMatcher (tried it with JmesPathMatcher and JsonPathMatcher) and having an empty body (not null, empty string) an error gets logged (doesnt break execution) to console
Expected behavior:
No error message is emitted, resulting in clean output.
Test to reproduce