Skip to content

[wasm] Test failure Dispose_DisposingHandlerCancelsActiveOperationsWithoutResponses - ERR_CONTENT_LENGTH_MISMATCH #58812

Closed

Description

@radical

Test failure ERR_CONTENT_LENGTH_MISMATCH seen on #57556 , windows:

System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandlerTest.Dispose_DisposingHandlerCancelsActiveOperationsWithoutResponses

Build
Log

[03:28:07] info: Starting:    System.Net.Http.Functional.Tests.dll
[03:28:12] fail: [out of order message from the browser]: http://127.0.0.1:49229/Echo.ashx?auth=basic&user=testuser&password=password - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[03:28:12] fail: [out of order message from the browser]: https://127.0.0.1:49230/Echo.ashx?auth=basic&user=testuser&password=password - Failed to load resource: the server responded with a status of 401 ()
[03:28:12] fail: [out of order message from the browser]: https://127.0.0.1:49230/Echo.ashx?auth=basic&user=testuser&password=password - Failed to load resource: the server responded with a status of 401 ()
[03:38:04] fail: [out of order message from the browser]: http://127.0.0.1:49310/ - Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
[03:38:04] fail: [FAIL] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandlerTest.Dispose_DisposingHandlerCancelsActiveOperationsWithoutResponses
[03:38:04] info: System.Net.Http.HttpRequestException : TypeError: Failed to fetch
[03:38:04] info: ---- System.Runtime.InteropServices.JavaScript.JSException : TypeError: Failed to fetch
[03:38:04] info:    at System.Net.Http.BrowserHttpHandler.BrowserHttpContent.GetResponseData(CancellationToken cancellationToken)
[03:38:04] info:    at System.Net.Http.BrowserHttpHandler.BrowserHttpContent.SerializeToStreamAsync(Stream stream, TransportContext context, CancellationToken cancellationToken)
[03:38:04] info:    at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
[03:38:04] info:    at System.Net.Http.HttpContent.<WaitAndReturnAsync>d__82`2[[System.Net.Http.HttpContent, System.Net.Http, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a],[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()
[03:38:04] info:    at System.Net.Http.Functional.Tests.HttpClientHandlerTest.<>c__DisplayClass29_1.<<Dispose_DisposingHandlerCancelsActiveOperationsWithoutResponses>b__2>d.MoveNext()
[03:38:04] info: --- End of stack trace from previous location ---
[03:38:04] info:    at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options)
[03:38:04] info:    at System.Net.Http.Functional.Tests.HttpClientHandlerTest.<>c__DisplayClass29_0.<<Dispose_DisposingHandlerCancelsActiveOperationsWithoutResponses>b__1>d.MoveNext()
[03:38:04] info: --- End of stack trace from previous location ---
[03:38:04] info:    at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options)
[03:38:04] info:    at System.Net.Http.Functional.Tests.HttpClientHandlerTest.<Dispose_DisposingHandlerCancelsActiveOperationsWithoutResponses>b__29_0(GenericLoopbackServer server1, Uri url1)
[03:38:04] info:    at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options)
[03:38:04] info:    at System.Net.Http.Functional.Tests.HttpClientHandlerTest.Dispose_DisposingHandlerCancelsActiveOperationsWithoutResponses()
[03:38:04] info: --- End of stack trace from previous location ---
[03:38:04] info: ----- Inner Stack Trace -----
[03:38:04] info:    at System.Net.Http.BrowserHttpHandler.BrowserHttpContent.GetResponseData(CancellationToken cancellationToken)
[03:38:21] info: Finished:    System.Net.Http.Functional.Tests.dll

Activity

  1. added
    arch-wasm
    on Sep 8, 2021
  2. ghost added
    untriaged
    on Sep 8, 2021
  3. changed the title [-][wasm] Test failure on windows - ` System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandlerTest.Dispose_DisposingHandlerCancelsActiveOperationsWithoutResponses`[/-] [+][wasm] Test failure Dispose_DisposingHandlerCancelsActiveOperationsWithoutResponses - ERR_CONTENT_LENGTH_MISMATCH[/+] on Sep 8, 2021
  4. pavelsavara commented on Sep 8, 2021

    @pavelsavara
    Member

    This is loppback test, it may be caused by timing/consistency of underlying wasm WS 'send'

  5. added this to the 7.0.0 milestone on Sep 9, 2021
  6. removed
    untriaged
    on Sep 9, 2021
  7. added
    blocking-clean-ci
    on Dec 13, 2021
  8. pavelsavara commented on Dec 15, 2021

    @pavelsavara
    Member

    Another Log

  9. removed
    blocking-clean-ci
    on Dec 21, 2021
  10. ilonatommy commented on Jun 20, 2022

    @ilonatommy
    Member

    @pavelsavara, keeping it under the 7.0 target?

  11. modified the milestones: 7.0.0, Future on Jul 11, 2022
  12. pavelsavara commented on Jul 11, 2022

    @pavelsavara
    Member

    Moved to future, It's not clear to me what causes it but it occasionally happens. So I will keep it open and assigned to me.

  13. ghost added
    in-pr
    on Sep 16, 2022
  14. ghost removed
    in-pr
    on Sep 21, 2022
  15. ghost locked as resolved and limited conversation to collaborators on Oct 21, 2022
  16. modified the milestones: Future, 8.0.0 on Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-System.Net.Http

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions