Back

Catch when Appwrite's server is down

  • 0
  • Self Hosted
  • Android
retr122
26 Jun, 2023, 12:25

How to catch when Appwrite's server is down uses Java and Android? Is it possible?

TL;DR
User wants to know how to catch when Appwrite's server is down using Java and Android. They are currently receiving a java.net.RuntimeException: timeout error. Possible Solutions: - Consider setting a timeout as a server error. - Integrate an API like better uptime or use a library to check the connection. If the connection is successful but there is a timeout, throw a server error.
D5
26 Jun, 2023, 12:26

Yes, if it throws an error not related to connection, but server (5xx error) you show server is down or something similar

retr122
26 Jun, 2023, 13:25

But my app catch only java.net.RuntimeException: timeout

retr122
26 Jun, 2023, 13:25

My internet is working 100%

retr122
26 Jun, 2023, 13:25

Is it possible that I'll catch server's status from my app?

retr122
26 Jun, 2023, 13:25

Before account's API operations

D5
26 Jun, 2023, 13:27

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

retr122
26 Jun, 2023, 13:28

I'll try it and after message about results

D5
26 Jun, 2023, 13:28

(edited) πŸ˜…

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more