Azure / Azure/data-api-builder

[BUG]: (NotFound) while fetching schema

Aperta
#2,763 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C#
Stelle
1.5k
Fork
370
Merge medio
3g 22h
PR unite (30g)
9

Descrizione

## What's wrong?

Running `dab validate` fails to download our schema.

## What happened?

```sh
C:\Temp\dab-harness>dab validate -c dab-config.json
Information: Microsoft.DataApiBuilder 1.5.56
Information: User provided config file: dab-config.json
Information: Validating config file: dab-config.json
Loading config file from C:\Temp\dab-harness\dab-config.json.
Warning: Received response: (NotFound) while fetching schema from url: https://github.com/Azure/data-api-builder/releases/download/v1.5.56/dab.draft.schema.json
Information: The config satisfies the schema requirements.
Information: Validating entity relationships.
Information: Config is valid.
```

Not quite sure how this is only a warning. But it should not occur at all.

## Version

```sh
C:\Temp\dab-harness>dab --version
Microsoft.DataApiBuilder 1.5.56+61c726a0fc38ab5a1d9e52cc3593bbd2a8633aec
```

## Configuration

```sh
C:\Temp\dab-harness>cd "c:\Temp\dab-harness" && dab init --database-type mssql --connection-string "@env('MSSQL_CONNECTION_STRING')" --host-mode development --rest.enabled true --graphql.enabled true --auth.provider StaticWebApps -c "dab-config.json"
Information: Microsoft.DataApiBuilder 1.5.56
Information: Generating user provided config file with name: dab-config.json
Information: Config file generated.
Information: SUGGESTION: Use 'dab add [entity-name] [options]' to add new entities in your config.

c:\Temp\dab-harness>cd "c:\Temp\dab-harness" && dab configure --runtime.cache.enabled true -c "dab-config.json"
Information: Microsoft.DataApiBuilder 1.5.56
Information: User provided config file: dab-config.json
Loading config file from c:\Temp\dab-harness\dab-config.json.
Information: Updated RuntimeConfig with Runtime.Cache.Enabled as 'True'
Information: Successfully updated runtime settings in the config file.
```
```json
{
"$schema": "https://github.com/Azure/data-api-builder/releases/download/v1.5.56/dab.draft.schema.json",
"data-source": {
"database-type": "mssql",
"connection-string": "@env('MSSQL_CONNECTION_STRING')"
},
"runtime": {
"rest": {
"enabled": true,
"path": "/api",
"request-body-strict": true
},
"graphql": {
"enabled": true,
"path": "/graphql",
"allow-introspection": true
},
"host": {
"cors": {
"origins": [],
"allow-credentials": false
},
"authentication": {
"provider": "StaticWebApps"
},
"mode": "development"
},
"cache": {
"enabled": true
}
},
"entities": {}
}
```

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Riproduci il problema con il comando `dab validate -c dab-config.json` e la configurazione mostrati, quindi traccia l’URL dello schema e il comportamento di recupero riportato nell’output. Verifica perché l’URL dello schema per v1.5.56 restituisce NotFound; il lavoro è completato quando la validazione non emette più questo avviso e lo schema viene recuperato oppure il problema viene gestito come previsto.

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

Valutazione

Stack tecnologico
csharp
Ambito
cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.