runtime icon indicating copy to clipboard operation
runtime copied to clipboard

[wasm] at System.Net.Http.BrowserHttpInterop.CancellationHelper

Open lewing opened this issue 11 months ago • 3 comments

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

Build Definition Test Pull Request
1067483 dotnet/runtime WasmTestOnFirefox-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116634
1067343 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116300
1067190 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116452
1067131 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#114741
1066177 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116582
1065052 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116539
1063793 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116488
1063105 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116440
1061978 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116411
1061538 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#100729
1061044 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116380
1058367 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115800
1058170 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116271
1057162 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116078
1057589 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingResponseAbort dotnet/runtime#116050
1057238 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116230
1056708 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115513
1056203 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116085
1056085 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingResponseAbort
1055903 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution
1055198 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115974
1054229 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115983
1054215 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116072
1051959 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#116001
1051501 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution
1050163 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115856
1049355 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115909
1048820 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115825
1047691 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115732
1046872 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115802
1046757 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115778
1046412 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115778
1046020 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115236
1044625 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115648
1044442 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115688
1044067 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution dotnet/runtime#115648

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
4 10 36

lewing avatar Feb 13 '25 18:02 lewing

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.

Log

[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

pavelsavara avatar Mar 21 '25 12:03 pavelsavara

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.

pavelsavara avatar Jul 30 '25 15:07 pavelsavara

Hope that https://github.com/dotnet/runtime/pull/118274 will fix this

pavelsavara avatar Aug 04 '25 08:08 pavelsavara