Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Error when uploading custom tasks using v0.7.3

Đang mở
#314 15 bình luận 4 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
azure, powershell, typescript
Lĩnh vực
cli, cloud, devops

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện tfx build tasks upload với tfx-cli v0.7.3 và v0.6.3 bằng lệnh pipeline Azure DevOps đã được ghi lại và các log. So sánh hành vi upload và cách xử lý request giữa các phiên bản; được xem là hoàn tất khi các custom task được upload thành công trên phiên bản hiện tại mà không cần ghim bản phát hành cũ hơn, đồng thời có coverage hồi quy cho lỗi này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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!

Ngôn ngữ chính
TypeScript
Star
387
Fork
142
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/tfs-cli

Tất cả issue của microsoft/tfs-cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.