appwrite / appwrite/sdk-generator
๐ Bug Report: Health endpoint responses
- 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.
In a project with Dart SDK (dart_appwrite-18.1.0), execute code similar to runHealthChecks()
I made some changes in Dart, because otherwise an error would occur: type 'Null' is not a subtype of type 'int'
(Separately) Repeat in a similar manner via .NET SDK โ the same behavior is observed.
### ๐ 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
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