[wasm] at System.Net.Http.BrowserHttpInterop.CancellationHelper
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=951332 Build error leg or test failing: System.Net.Http.Functional.Tests.HttpContentTest.ReadAsStringAsync_Unbuffered_CanBeCanceled_AlreadyCanceledCts Pull request: https://github.com/dotnet/runtime/pull/112295
Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": "at System.Net.Http.BrowserHttpInterop.CancellationHelper",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
Known issue validation
Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=951332
Error message validated: [at System.Net.Http.BrowserHttpInterop.CancellationHelper]
Result validation: :white_check_mark: Known issue matched with the provided build.
Validation performed at: 2/13/2025 6:46:50 PM UTC
Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 4 | 10 | 36 |
Tagging subscribers to 'arch-wasm': @lewing See info in area-owners.md if you want to be subscribed.
Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.
[09:27:39] info: [FAIL] System.Net.Http.Functional.Tests.HttpClientTest.GetStringAsync_Success
[09:27:39] info: System.Threading.Tasks.TaskCanceledException : The request was canceled due to the configured HttpClient.Timeout of 100 seconds elapsing.
[09:27:39] info: ---- System.TimeoutException : The operation was canceled.
[09:27:39] info: -------- System.Threading.Tasks.TaskCanceledException : The operation was canceled.
[09:27:39] info: ------------ System.Runtime.InteropServices.JavaScript.JSException : Error: OperationCanceledException
[09:27:39] info: at System.Net.Http.HttpClient.HandleFailure(Exception e, Boolean telemetryStarted, HttpResponseMessage response, CancellationTokenSource cts, CancellationToken cancellationToken, CancellationTokenSource pendingRequestsCts)
[09:27:39] info: at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
[09:27:39] info: at System.Net.Http.Functional.Tests.HttpClientTest.<>c__DisplayClass24_0.<<GetStringAsync_Success>b__0>d.MoveNext()
[09:27:39] info: --- End of stack trace from previous location ---
[09:27:39] info: at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
[09:27:39] info: --- End of stack trace from previous location ---
[09:27:39] info: at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
[09:27:39] info: at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<<CreateClientAndServerAsync>b__0>d.MoveNext()
[09:27:39] info: --- End of stack trace from previous location ---
[09:27:39] info: at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options)
[09:27:39] info: at System.Net.Http.Functional.Tests.HttpClientTest.GetStringAsync_Success()
[09:27:39] info: --- End of stack trace from previous location ---
[09:27:39] info: ----- Inner Stack Trace -----
[09:27:39] info:
[09:27:39] info: ----- Inner Stack Trace -----
[09:27:39] info: at System.Net.Http.CancellationHelper.ThrowOperationCanceledException(Exception innerException, CancellationToken cancellationToken)
[09:27:39] info: at System.Net.Http.CancellationHelper.ThrowIfCancellationRequested(Exception innerException, CancellationToken cancellationToken)
[09:27:39] info: at System.Net.Http.BrowserHttpInterop.CancellationHelper(Task promise, CancellationToken cancellationToken, JSObject jsController)
[09:27:39] info: at System.Net.Http.BrowserHttpController.CallFetch()
[09:27:39] info: at System.Net.Http.HttpClient.GetStringAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
[09:27:39] info: ----- Inner Stack Trace -----
[09:27:39] info: at System.Net.Http.BrowserHttpInterop.CancellationHelper(Task promise, CancellationToken cancellationToken, JSObject jsController)
[09:27:39] info: at Qr.cancel (http://127.0.0.1:49255/_framework/dotnet.runtime.js:3:43796)
[09:27:39] info: at http://127.0.0.1:49255/_framework/dotnet.runtime.js:3:175950
[09:27:39] info: at http://127.0.0.1:49255/_framework/dotnet.runtime.js:3:175959
[09:27:39] info: at mr (http://127.0.0.1:49255/_framework/dotnet.runtime.js:3:35574)
[09:27:39] info: at Fc (http://127.0.0.1:49255/_framework/dotnet.runtime.js:3:175737)
[09:27:39] info: at http://127.0.0.1:49255/_framework/dotnet.native.wasm:wasm-function[293]:0x20099
[09:27:39] info: at http://127.0.0.1:49255/_framework/dotnet.native.wasm:wasm-function[221]:0x1d34c
[09:27:39] info: at http://127.0.0.1:49255/_framework/dotnet.native.wasm:wasm-function[212]:0xf14f
[09:27:39] info: at http://127.0.0.1:49255/_framework/dotnet.native.wasm:wasm-function[286]:0x1fb3e
[09:27:39] info: at http://127.0.0.1:49255/_framework/dotnet.native.wasm:wasm-function[322]:0x20ce4
[09:27:39] info: at http://127.0.0.1:49255/_framework/dotnet.native.wasm:wasm-function[191]:0xcd99
[09:27:39] info: at http://127.0.0.1:49255/_framework/dotnet.native.wasm:wasm-function[3567]:0x1139c7
[09:27:39] info: at mono_wasm_schedule_timer_tick (http://127.0.0.1:49255/_framework/dotnet.runtime.js:3:56853)
[09:27:39] info: at callUserCallback (http://127.0.0.1:49255/_framework/dotnet.native.js:8:106478)
[09:27:39] info: at http://127.0.0.1:49255/_framework/dotnet.native.js:8:106746
Many of them are System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingResponseAbort(method: GET, abort: "abortDuringBody") which is just timing issue of the test.
Hope that https://github.com/dotnet/runtime/pull/118274 will fix this