ExtensionManagementRestClient use wrong base url

Open Beginner friendly
#71 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
azure, typescript
Domain
api

Research direction

Start at ExtensionManagementRestClient and its getInstalledExtensionByName method, then trace how the request base URL is selected. Verify the generated request targets extmgmt.dev.azure.com while preserving the installed-extension path; done when the client uses that host instead of dev.azure.com.

Written by the indexing model from the issue text.

Description

Trying to use the extension management rest client get installed extension information:

const client = getClient(ExtensionManagementRestClient, getAdoClientOptions());
const extension = await client.getInstalledExtensionByName(publisherName, extensionName);

Inspect the actual network and find that wrong base url is used:

https://dev.azure.com/{org}/_apis/ExtensionManagement/InstalledExtensionsByName/{publisherName}/{extensionaName}

this should be the right base Url:

https://extmgmt.dev.azure.com

Dominant language
TypeScript
Stars
126
Forks
54
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/azure-devops-extension-api

All issues in microsoft/azure-devops-extension-api

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.