Azure / Azure/apiops

Running publisher with an API that has a VersionSet fails on an 'empty' APIM instance

Đang mở
#641 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
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

Mô tả

### Release version

v6.0.1.1

### Describe the bug

When I run the publisher to upload all of my artifacts (one of the apis contains a versionSet into a 'clean' apim instance I get the following error stating that the ApiVersionSet not found.

```bash
System.Net.Http.HttpRequestException: HTTP request to URI failed with status code 404. Content is '{"error":{"code":"ResourceNotFound","message":"ApiVersionSet not found.","details":null}}'
```

### Expected behavior

Publisher would create the API with multiple versions correctly into APIM.

### Actual behavior

Error occurs trying to find the versionSet that is stored in the `apiinformation.json` file. Since it's an empty APIM instance it won't find the versionSet.

### Reproduction Steps

- Create an api that has multiple versions
- Extract that api into your git repo
- Run the publisher on a new APIM instance

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

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lần chạy publisher trên một phiên bản Azure API Management trống, sau đó theo dõi quá trình tra cứu versionSet bằng dữ liệu trong apiinformation.json. Kiểm tra nơi publisher xử lý trường hợp thiếu ApiVersionSet trước khi tạo các API có phiên bản. Hoàn tất khi việc phát hành một API có nhiều phiên bản thành công mà không gặp lỗi 404.

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

Đánh giá

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

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.