Share via

Azure DevOps Feed API — Conflict between normalizedPackageName and packageNameQuery

Antoine GILLET 0 Reputation points
2025-10-09T14:43:17.74+00:00

While calling the Azure DevOps Feed API to list NPM packages, I’m getting an error indicating a conflict between query parameters, even though I’m only explicitly passing packageNameQuery.

  1. Run the following Node.js code:
       const apiUrl = `https://feeds.dev.azure.com/${organization}/_apis/packaging/Feeds/${feedId}/packages?protocolType=Npm&packageNameQuery=${packageName}&includeAllVersions=true&$top=${top}&$skip=${skip}&api-version=7.1`;
    

const curlCmd = curl -s -H "Authorization: Bearer ${accessToken}" "${apiUrl}"; const apiResponse = execSync(curlCmd).toString(); console.log(apiResponse);

   
**Expected Behavior:** The API should return the list of NPM packages filtered by `packageNameQuery`.

**Actual Behavior:** The API returns the following error response:


```json
{
  "$id": "1",
  "innerException": null,
  "message": "Query parameter 'normalizedPackageName' conflicts with 'packageNameQuery'.",
  "typeName": "Microsoft.VisualStudio.Services.Feed.WebApi.IncompatibleQueryParametersException, Microsoft.VisualStudio.Services.Feed.WebApi",
  "typeKey": "IncompatibleQueryParametersException",
  "errorCode": 0,
  "eventId": 3000
}

Notes:

I am not including normalizedPackageName anywhere in the query.

  • The issue seems to occur when using top and skip.
Azure DevOps
0 comments No comments

1 answer

Sort by: Most helpful
  1. Antoine GILLET 0 Reputation points
    2025-10-09T14:48:36.3033333+00:00

    If I simply do:

    const apiUrl = `https://feeds.dev.azure.com/${organization}/_apis/packaging/Feeds/${feedId}/packages?protocolType=Npm&packageNameQuery=${packageName}&includeAllVersions=true&api-version=7.1`;
    

    It works!

    But as soon as I add the top and skip parameters, I get a conflict error ...

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.