[BUG]Error when removing an operation or attempting to revert an unsuccessful modification

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

@guythetechie đang làm issue này rồi.

Từ ngày 26/8/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug
Release version

v6.0.1.4

Describe the bug

When attempting to publish an API by removing operations, an ‘operation not found’ error occurs, breaking the entire publishing process and leaving the API in an inconsistent state.

##[error]System.Net.Http.HttpRequestException: HTTP request to URI [https://***/policies/policy?api-version=2023-09-01-preview](https://%2A%2A%2A/policies/policy?api-version=2023-09-01-preview) failed with status code 404.
Content is '{"error":{"code":"ResourceNotFound","message":"Operation not found.","details":null}}'.

Expected behavior

No error should occur, only a warning, upon attempts to remove a non-existent operation or to rollback all preceding operations

Actual behavior

Error when attempting to publish an API by removing operations:

Content is '{"error":{"code":"ResourceNotFound","message":"Operation not found.","details":null}}'.

Reproduction Steps

remove operation xml polices and operations path from specification.json and then publish

Ngôn ngữ chính
C#
Star
448
Fork
247
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở 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 Azure/apiops

Tất cả issue của Azure/apiops

Issue tương tự

Thêm issue về C#

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.