Skip to content

URLs using ipv6 requests not working under macOS #1743

Closed

Description

@shirleyyhchang

Hi

I have a code that runs on .net on windows perfectly.
URL using both ipv4 and ipv6 are correct under windows.

The same code when I copy it to MAC used to work;
The response is correct when I use the ipv4 url.
But when i use ipv6 url it responds statuscode 0.

My code could not be simpler:

var baseUrl = new Uri("https://[fe80::290:e8ff:fe8b:2537%en10]:8443"); 
var client = new RestClient(baseUrl);
var request = new RestRequest(/api/v1/auth, Method.POST);                
request.RequestFormat = DataFormat.Json;
request.Timeout = 3000;
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "Bearer");
request.AddParameter("application/json", payload, ParameterType.RequestBody);
var response = await client.ExecuteAsync(request);

The output under MAC OS is:
content received =
status code: 0

By the way,I have tried the method using HttpClient and both ipv4 and ipv6 urls respond correctly.

Any ideas?

Regards
Shirley

Activity

  1. alexeyzimarev commented on Feb 11, 2022

    @alexeyzimarev
    Member

    Please provide the issue details as requested in the issue template.

  2. added
    invalid
    and removed on Feb 11, 2022
  3. repo-ranger commented on Feb 11, 2022

    @repo-ranger

    ⚠️ This issue has been marked invalid and will be closed in 3 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalid

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions