tfs-cli: Error when uploading custom tasks using v0.7.3

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 tfx-cli@0.6.3) 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!

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Reactions: 4
  • Comments: 15 (8 by maintainers)

Most upvoted comments

v0.7.6 is working for me now, thanks!

Fix will be published today.

I am also having the same issue with 0.7.3. Thanks for the temporary fix.