Running publisher with an API that has a VersionSet fails on an 'empty' APIM instance
- Lenguaje dominante
- C#
- Estrellas
- 448
- Forks
- 247
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
### 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
Guía de contribución
Línea de trabajo
Empieza reproduciendo la ejecución del publisher contra una instancia vacía de Azure API Management y, después, sigue la búsqueda de versionSet usando los datos de apiinformation.json. Comprueba dónde gestiona el publisher la ausencia de ApiVersionSet antes de crear APIs versionadas. La tarea estará terminada cuando la publicación de una API con varias versiones se complete correctamente sin el error 404.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- azure, csharp
- Área
- api, cloud
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100