Running publisher with an API that has a VersionSet fails on an 'empty' APIM instance
- Langage dominant
- C#
- Étoiles
- 448
- Forks
- 247
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire l’exécution du publisher sur une instance vide d’Azure API Management, puis suivez la recherche de versionSet à l’aide des données de apiinformation.json. Vérifiez où le publisher gère l’absence de ApiVersionSet avant de créer des API versionnées. La tâche est terminée lorsqu’une API comportant plusieurs versions peut être publiée avec succès sans l’erreur 404.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- azure, csharp
- Domaine
- api, cloud
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100