Error when uploading custom tasks using v0.7.3
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
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
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:
[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 [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 [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
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/tfs-cli
-
Area: tfx-cli triage
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Area: tfx-cli triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Area: tfx-cli DevOps enhancement
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
Area: tfx-cli triage
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Area: tfx-cli triage
Difficulty 4/5 3-5 days Newbie friendliness 48/100
All issues in microsoft/tfs-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
📕documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
db-ux-design-system/core-web#8343 ·
Maintainers usually reply within 1 day
-
enhancement triage/needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
heygen-com/hyperframes#4944 ·
Maintainers usually reply within 1 day
-
ai-driven-qa bug claude
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
linagora/twake-calendar-frontend#1493 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
material-extensions/vscode-material-icon-theme#3610 ·
Maintainers usually reply within 2 days