Skip to content

[wasm][HTTP] TypeError: Failed to fetch #53018

@pavelsavara

Description

@pavelsavara

Broken tests in

  • System.Net.Http.Functional.Tests.SyncHttpHandler_PostScenarioTest
  • System.Net.Http.Functional.Tests.HttpClientHandler_RemoteServerTest

Tests fail with

System.Net.Http.HttpRequestException : TypeError: Failed to fetch   at System.Net.Http.BrowserHttpHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at System.Net.Http.Functional.Tests.HttpClientHandler_RemoteServerTest.SendAsync_SendRequestUsingMethodToEchoServerWithNoContent_MethodCorrectlySent(String method, Uri serverUri)

Part of the failures could be caused by lack of CORS support on the remote test server in Azure.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions