Azure / Azure/apiops

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

Aperta
#641 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
448
Fork
247
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia riproducendo l’esecuzione del publisher su un’istanza vuota di Azure API Management, quindi traccia la ricerca di versionSet usando i dati di apiinformation.json. Verifica dove il publisher gestisce l’assenza di ApiVersionSet prima di creare API versionate. Il lavoro è completato quando la pubblicazione di un’API con più versioni riesce senza l’errore 404.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, csharp
Ambito
api, cloud
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.