mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-13 13:53:34 +01:00
Tests failing with TaskCanceledException on Windows Server 2025 Build 7171 #730
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 @oschwald on GitHub (Dec 3, 2025).
Describe the bug
After the recent GitHub Actions runner image update (win25/20251125.122), a test that uses WireMock.Net to return a simple
text/plainresponse with HTTP 406 is now throwingTaskCanceledExceptionon Windows with .NET 10.The same test passes on:
Failing build: https://github.com/maxmind/GeoIP2-dotnet/actions/runs/19903956765/job/57058325684
Expected behavior
The test should receive the mocked HTTP 406 response and throw our custom
HttpException, not aTaskCanceledException.Test to reproduce
Content-Type: text/plainHttpClient.Send()on .NET 10Our test code: https://github.com/maxmind/GeoIP2-dotnet/blob/main/MaxMind.GeoIP2.UnitTests/WebServiceClientTests.cs#L146-L157
Other related info
The main difference between the working and failing runner images is Windows OS Build 6905 -> 7171. That update (KB5068861) mentions stricter HTTP.sys parsing for RFC 9112 compliance around CRLF in chunk extensions. Not sure if that's related, but thought it might be a lead.
Using WireMock.Net 1.16.0.
@oschwald commented on GitHub (Dec 3, 2025):
Although this was happening repeatedly in CI for a period of hours, it seems like it has gone away. Maybe GitHub changed something in their image. I'll close this for now as I am not sure it is actionable.