Skip to content

[wasm][HTTP] TypeError: Failed to execute 'fetch' on 'Window': 'TRACE' HTTP method is unsupported. #53592

@pavelsavara

Description

@pavelsavara

This is behavior of underlying browser network component which makes sense. The open question is if we want to wrap the exception message

Details

Failing tests System.Net.Http.Functional.Tests.HttpClientHandler_RemoteServerTest when executed on Wasm/Browser in Outerloop tests.

Methods

  • SendAsync_SendRequestUsingMethodToEchoServerWithNoContent_MethodCorrectlySent
  • SendAsync_SendRequestUsingNoBodyMethodToEchoServerWithContent_NoBodySent

Fails with

System.Net.Http.HttpRequestException : TypeError: Failed to execute 'fetch' on 'Window': 'TRACE' HTTP method is unsupported.
   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_SendRequestUsingNoBodyMethodToEchoServerWithContent_NoBodySent(String method, Uri serverUri)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions