Skip to content

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

Closed

Description

@lewing

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: #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: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=951332
Error message validated: [at System.Net.Http.BrowserHttpInterop.CancellationHelper]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 2/13/2025 6:46:50 PM UTC

Report

Build Definition Test Pull Request
1110102 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution #118227
1108738 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution #118178
1108311 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution
1106944 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution #118105
1106907 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution #118045
1106522 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution #117583
1106251 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution
1105588 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution
1105564 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution #118007
1104709 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution #115826
1103637 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution #117953
1102438 dotnet/runtime System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingResponseAbort #117889
1102033 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution #117436
1102004 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution #117884
1101765 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution #117916
1101517 dotnet/runtime WasmTestOnFirefox-ST-System.Net.Http.Functional.Tests.WorkItemExecution #117906
1099243 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution #116798
1099109 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution #106374
1098284 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution #117686
1097145 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution
1094738 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution
1091981 dotnet/runtime WasmTestOnChrome-ST-System.Net.Http.Functional.Tests.WorkItemExecution

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 22

Activity

  1. added
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    Known Build ErrorUse this to report build issues in the .NET Helix tab
    on Feb 13, 2025
  2. added
    arch-wasmWebAssembly architecture
    os-browserBrowser variant of arch-wasm
    and removed
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    untriagedNew issue has not been triaged by the area owner
    Known Build ErrorUse this to report build issues in the .NET Helix tab
    on Feb 13, 2025
  3. dotnet-policy-service commented on Feb 13, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'arch-wasm': @lewing
    See info in area-owners.md if you want to be subscribed.

  4. dotnet-policy-service commented on Feb 13, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/ncl
    See info in area-owners.md if you want to be subscribed.

  5. added
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    Known Build ErrorUse this to report build issues in the .NET Helix tab
    on Feb 14, 2025
  6. pavelsavara commented on Mar 21, 2025

    @pavelsavara
    Member

    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
    
  7. added this to the 10.0.0 milestone on Apr 1, 2025
  8. self-assigned this
    on Apr 1, 2025
  9. modified the milestones: 10.0.0, 11.0.0 on Jul 16, 2025
  10. pavelsavara commented on Jul 30, 2025

    @pavelsavara
    Member

    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.

  11. pavelsavara commented on Aug 4, 2025

    @pavelsavara
    Member

    Hope that #118274 will fix this

  12. removed
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    on Aug 7, 2025
  13. locked and limited conversation to collaborators on Sep 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions