
Using health endpoint in flutter.
I am currently contributing to an open source project and i need to check the status of the appwrite instance wether it is active or not but i am unable to access the health endpoint.
try {
final health = await getRealtime().health();
print('Appwrite is active: ${health.status}');
return health;
} on AppwriteException catch (e) {
print('Error checking Appwrite health: $e');
throw e;
}
}```
> and i get this error :-
> The method 'health' isn't defined for the type 'Realtime'.
if I am doing wrong then can you tell me how really to proceed.

yes...that doesn't exist. Not sure where you saw that's available

So can you tell me what can I do actually the owner of the repository wants that I first that the appwrite instance is active then continue to the regular flow of the app otherwise show a error screen

What repo?

He says he's contributing to an open source project

Pretty rudimentary but can you have a resource with global read which you can fetch on startup. Thus, if successfully fetched (appwrite instance is good) else otherwise

That is what I can do thankyou I will proceed this way only.
Recommended threads
- Redirect URL sends HTTP instead of HTTPS...
I am not sure since when this issue is present, but my Google and Apple redirect URI are no longer pointing to the HTTPS redirect URI when I try to use OAuth. ...
- Failing to run document operations on sd...
Could someone point me in the right direction I'm going in cirlces. I have a problem with sdks and my self-hosted server in production (for ~3 years) I have bee...
- Functions fail to deploy after switching...
Hi <@1087889306208718959> , after switching my self-hosted Appwrite instance to use AWS S3 as the storage backend, my Cloud Functions stopped working. I’m runni...
