Skip to content

Failed to find api location for area: Location id: e81700f7-3be2-46de-8624-2eb35882fcaa #624

@pikami

Description

@pikami

Issue

When calling connection.getReleaseApi() I get the following exception:

81 |     getVersioningData(apiVersion, area, locationId, routeValues, queryParams) {
82 |         let requestUrl;
83 |         return this.beginGetLocation(area, locationId)
84 |             .then((location) => {
85 |             if (!location) {
86 |                 throw new Error("Failed to find api location for area: " + area + " id: " + locationId);
                           ^
error: Failed to find api location for area: Location id: e81700f7-3be2-46de-8624-2eb35882fcaa
      at /home/pk/pro/azure-devops-automate/node_modules/azure-devops-node-api/VsoClient.js:86:23

I'm on version 14.1.0 of azure-devops-node-api

Code to reproduce

import * as azdev from "azure-devops-node-api";

const orgUrl = "https://dev.azure.com/pikami/";
const token = "[REDACTED]";
const projectName = "pikami";

const authHandler = azdev.getPersonalAccessTokenHandler(token);
const connection = new azdev.WebApi(orgUrl, authHandler);

const releaseApi = await connection.getReleaseApi();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions