Error when uploading custom tasks using v0.7.3
See original GitHub issueWe 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:
[41merror: Error: {“count”:1,“value”:{“Message”:“The requested resource does not support http method ‘POST’.”}}[49m
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 [37m[90mTFS Cross Platform Command Line Interface v0.7.3[37m[39m 2019-04-17T07:31:27.4258513Z [37m[90mCopyright Microsoft Corporation[37m[39m 2019-04-17T07:31:31.5682886Z [41merror: Error: {“count”:1,“value”:{“Message”:“The requested resource does not support http method ‘POST’.”}}[49m
After specifying version 0.6.3.:
2019-04-17T07:44:02.6556963Z Uploading task… 2019-04-17T07:44:03.9849281Z [37m[90mTFS Cross Platform Command Line Interface v0.6.3[37m[39m 2019-04-17T07:44:03.9857007Z [37m[90mCopyright Microsoft Corporation[37m[39m 2019-04-17T07:44:18.1194130Z 2019-04-17T07:44:18.2793401Z [32mTask at c:\agent_A_work\XXX uploaded successfully![39m
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:15 (8 by maintainers)
Top GitHub Comments
v0.7.6 is working for me now, thanks!
Fix will be published today.