Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Error when uploading custom tasks using v0.7.3

Open
#314 15 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
azure, powershell, typescript
Domain
cli, cloud, devops

Research direction

Start by reproducing tfx build tasks upload with tfx-cli v0.7.3 and v0.6.3 using the documented Azure DevOps pipeline command and logs. Compare the upload behavior and request handling between versions; done means custom tasks upload successfully on the current version without pinning the older release, with regression coverage for the failure.

Written by the indexing model from the issue text.

Description

Area: tfx-cli bug

We have a few custom tasks in Azure DevOps that we manage and are available to use company-wise. There is a release pipeline that uploads all the tasks if a new version is available using the tfs-cli (controlled via a PowerShell script). Today we were seeing errors when we attempted to upload the tasks:

error: Error: {"count":1,"value":{"Message":"The requested resource does not support http method 'POST'."}}

The pipeline is installing the cli tool with 'npm': install -g tfx-cli and we upload the tasks with the following command: tfx build tasks upload --overwrite --task-path $uploadPath --service-url $collection --auth-type pat --token $pat. The listing command (tfx build tasks list --service-url $collection --auth-type pat --token $pat) is working as before. Nothing was changed in the script or the release process.

After we specified the previous version for npm (install -g [email protected]) it was working again so this issue might be due to a change presented in the latest version I suppose?

Full logs we have from Azure DevOps for failed attempts:

2019-04-17T07:31:26.2169485Z Uploading task...
2019-04-17T07:31:27.4244699Z TFS Cross Platform Command Line Interface v0.7.3
2019-04-17T07:31:27.4258513Z Copyright Microsoft Corporation
2019-04-17T07:31:31.5682886Z error: Error: {"count":1,"value":{"Message":"The requested resource does not support http method 'POST'."}}

After specifying version 0.6.3.:

2019-04-17T07:44:02.6556963Z Uploading task...
2019-04-17T07:44:03.9849281Z TFS Cross Platform Command Line Interface v0.6.3
2019-04-17T07:44:03.9857007Z Copyright Microsoft Corporation
2019-04-17T07:44:18.1194130Z
2019-04-17T07:44:18.2793401Z Task at c:\agent_A_work\XXX uploaded successfully!

Dominant language
TypeScript
Stars
386
Forks
142
Avg merge
2d 11h
Merged PRs (30d)
5

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

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/tfs-cli

All issues in microsoft/tfs-cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.