🐛 Bug Report: Health endpoint responses

Aperta
#1,211 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp, dart
Ambito
api, tooling

Direzione di ricerca

Inizia riproducendo health.getDB() e health.getCache() sugli endpoint health, quindi esamina la deserializzazione generata di HealthStatus negli SDK Dart e .NET, in particolare i punti di ingresso fromMap/from. Il lavoro è completato quando gli oggetti restituiti contengono i campi name, ping e status valorizzati, senza errori di tipo null in entrambi gli SDK.

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

Descrizione

bug
👟 Reproduction steps

Call Health endpoints directly (for example, in Postman) — ttps://cloud.appwrite.io/v1/health/cache Make sure that the name, ping, and status fields are present and filled in the response body.
Image

In a project with Dart SDK (dart_appwrite-18.1.0), execute code similar to runHealthChecks()
Image
I made some changes in Dart, because otherwise an error would occur: type 'Null' is not a subtype of type 'int'
Image

(Separately) Repeat in a similar manner via .NET SDK — the same behavior is observed.
Image

👍 Expected behavior

When calling health.getDB() and health.getCache(), the SDK should return HealthStatus objects with the name, ping, and status fields filled in.

👎 Actual Behavior

in Dart and .NET SDK (maybe in all sdk) When deserializing SDK responses (at the moment of calling the factory/constructor fromMap / from), the objects received for db and cache do not contain the name, status, and ping keys in the transmitted map/JSON.

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

no

👀 Have you spent some time to check if this issue has been raised before?
  • I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
Lingua principale
Twig
Stelle
330
Fork
212
Merge medio
12h 3m
PR unite (30g)
131

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di appwrite/sdk-generator

Tutte le issue di appwrite/sdk-generator

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.