appwrite / appwrite/sdk-generator

๐Ÿ› Bug Report: Health endpoint responses

Open
#1,211 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Twig
Stars
325
Forks
212
Avg merge
7h 36m
Merged PRs (30d)
91

Description

### ๐Ÿ‘Ÿ 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?

- [x] I checked and didn't find similar issue

### ๐Ÿข Have you read the Code of Conduct?

- [x] I have read the [Code of Conduct](https://github.com/appwrite/appwrite/blob/HEAD/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing health.getDB() and health.getCache() against the health endpoints, then inspect the generated HealthStatus deserialization in the Dart and .NET SDKs, especially the fromMap/from entry points. Done means the returned objects contain populated name, ping, and status fields without null-type errors in both SDKs.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, dart
Domain
api, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.