Azure / Azure/apiops

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

オープン
#641 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
448
フォーク
247
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、空の Azure API Management インスタンスに対して publisher の実行を再現し、次に apiinformation.json のデータを使って versionSet の検索を追跡します。バージョン付き API を作成する前に、publisher が ApiVersionSet の欠如をどこで処理しているかを確認します。複数のバージョンを持つ API の発行が 404 エラーなしで成功すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, csharp
領域
api, cloud
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。