Azure / Azure/data-api-builder

[BUG]: (NotFound) while fetching schema

Offen
#2,763 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
1.5k
Forks
370
Ø Merge
3 T. 22 Std.
Gemergte PRs (30 T.)
9

Beschreibung

## 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": {}
}
```

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Reproduziere den Fehler mit dem gezeigten Befehl `dab validate -c dab-config.json` und der Konfiguration und verfolge anschließend die Schema-URL sowie das im Output gemeldete Abrufverhalten. Prüfe, warum die Schema-URL für v1.5.56 NotFound zurückgibt; abgeschlossen ist die Aufgabe, wenn die Validierung diese Warnung nicht mehr ausgibt und das Schema abgerufen wird oder der Fehler wie vorgesehen behandelt wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
csharp
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.