You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the ManagedClientConsoleAppSample/README.md, it says:
azureDevOpsOrganizationUrl - update this with the url to your Azure DevOps/TFS collection, e.g. http://dev.azure.com/organization for Azure DevOps.
When I am just updating the organization URL in the mentioned format, I get an unsuccessful NOT FOUND response, when the HttpClient is trying to GetAsync.
The reason is, that the HttpClient.GetAsync combines the BaseAddress with the relative request URI without the Organization name, when there is a slash missing behind the URL of azureDevOpsOrganizationUrl!
This was not possible to happen in the vsts URL before, as the organization name was part of the FQDN at that time, so this problem was introduced by the switch to dev.azure.com.
(Also, the new URI statement around the URL when setting the BaseAddress does unfortunately also not ensure, that there is a trailing slash at the end of the BaseAddress afterwards.)
Suggesting to fix README containing the trailing slash and mention, that it is important. Also, e.g. update Program.cs like:
internal const string azureDevOpsOrganizationName = "organization"; //change to the (URL-)name of your Azure DevOps organization; internal static string azureDevOpsOrganizationUrl = $"https://dev.azure.com/{azureDevOpsOrganizationName}/"; // NOTE: This must use HTTPS and trailing slash is required
The text was updated successfully, but these errors were encountered:
In the ManagedClientConsoleAppSample/README.md, it says:
When I am just updating the organization URL in the mentioned format, I get an unsuccessful NOT FOUND response, when the HttpClient is trying to GetAsync.
The reason is, that the HttpClient.GetAsync combines the BaseAddress with the relative request URI without the Organization name, when there is a slash missing behind the URL of azureDevOpsOrganizationUrl!
This was not possible to happen in the vsts URL before, as the organization name was part of the FQDN at that time, so this problem was introduced by the switch to dev.azure.com.
(Also, the new URI statement around the URL when setting the BaseAddress does unfortunately also not ensure, that there is a trailing slash at the end of the BaseAddress afterwards.)
Suggesting to fix README containing the trailing slash and mention, that it is important. Also, e.g. update Program.cs like:
internal const string azureDevOpsOrganizationName = "organization"; //change to the (URL-)name of your Azure DevOps organization;
internal static string azureDevOpsOrganizationUrl = $"https://dev.azure.com/{azureDevOpsOrganizationName}/"; // NOTE: This must use HTTPS and trailing slash is required
The text was updated successfully, but these errors were encountered: