Skip to content

AndroidMessageHandler: HTTP status code 308 is throwing an exception #8946

Description

@tipa

Android application type

.NET Android (net7.0-android, net8.0-android, etc.)

Affected platform version

.NET8

Description

This is a new issue after this one has been closed: #4477

Steps to Reproduce

var msg = new HttpRequestMessage(HttpMethod.Get, "https://httpbingo.org/status/304");
var result = await new HttpClient().SendAsync(msg); // no exception

var msg2 = new HttpRequestMessage(HttpMethod.Get, "https://httpbingo.org/status/308");
var result2 = await new HttpClient().SendAsync(msg2); // exception

Sending the first message does not cause an exception (which is the expected behavior), while the second one does.

Did you find any workaround?

No response

Relevant log output

No response

Activity

  1. added
    Area: HTTPIssues with sockets / HttpClient.
    and removed
    needs-triageIssues that need to be assigned.
    on May 15, 2024
  2. locked and limited conversation to collaborators on Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: HTTPIssues with sockets / HttpClient.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions