Rank 2: Process
How to catch when Appwrite's server is down uses Java and Android? Is it possible?
Votes
0
Replies
8
Participants
Unknown
Messages
9
Rank 2: Process
How to catch when Appwrite's server is down uses Java and Android? Is it possible?
Moderator
Yes, if it throws an error not related to connection, but server (5xx error) you show server is down or something similar
Rank 2: Process
But my app catch only java.net.RuntimeException: timeout
Rank 2: Process
My internet is working 100%
Rank 2: Process
Is it possible that I'll catch server's status from my app?
Rank 2: Process
Before account's API operations
Moderator
Then you could consider timeout as server error. It's the only way. Another option could be integrating an API (for example better uptime) with your app or using a library to check connection. If connection is successful but you see a timeout, throw sevre refror
Rank 2: Process
I'll try it and after message about results
Moderator
(edited) 😅