andstatus / andstatus

Multiple accounts client for multiple Social networks. For Android
http://andstatus.org/
Apache License 2.0
307 stars 69 forks source link

Provide an error message when server is down #568

Closed DetroitLibertyPenguin closed 1 year ago

DetroitLibertyPenguin commented 1 year ago

I tried to post a lengthy message and it didn't post I kept retrying and only after i tried from PC did I realize my instance's server was down

R; Post , foreground "@andstatus@identi.ca i noticed the…", Created 9 minutes ago, executed: 1, last: 9 minutes ago, retriesLeft: 9, error: Soft Post "@andstatus@identi.ca i noticed the…", Status code: UNKNOWN; soft; URL: https://identi.ca/api/user/jimfulner/uploads; Caused by java.net.ConnectException: Failed to connect to identi.ca/107.170.160.49:443 , CommandData: {command: update-media, id: 1673038544276, foreground, account: jimfulner@identi.ca/Pump.io "@andstatus@identi.ca i noticed the…", itemId: 63113, created:just now, CommandResult: {error: Soft}}

R; Get Actor information , foreground "FOLLOWERS.of.jimfulner.4334", Created 65 minutes ago, executed: 2, last: 21 minutes ago, retriesLeft: 8, error: Soft Get Actor information "FOLLOWERS.of.jimfulner.4334", Status code: UNKNOWN; soft; URL: https://identi.ca/api/user/jimfulner/followers; Caused by java.net.ConnectException: Failed to connect to identi.ca/107.170.160.49:443 , CommandData: {command: get-user, id: 1673035124086, foreground, account: jimfulner@identi.ca/Pump.io, username: FOLLOWERS.of.jimfulner.4334, Timeline: {Pump.io, User{id=4494; knownAs=FOLLOWERS.of.jimfulner.4334@identi.ca}, type: sent_at_origin, actorActor: {origin:Pump.io, id: 4572, oid: https://identi.ca/api/user/jimfulner/followers, username: FOLLOWERS.of.jimfulner.4334, realName: FOLLOWERS.of.jimfulner.4334, groupType: FOLLOWERS, User{id=4494; knownAs=FOLLOWERS.of.jimfulner.4334@identi.ca}, avatarFile: AvatarFile4572: id:4572 IMAGE, MediaMetadata: {}, DownloadFile filename:, parentId: 4334}}, created:44 minutes ago, CommandResult: {executed: 1, last: 44 minutes ago, retriesLeft: 9, error: Soft}}

R; Post , foreground "@andstatus@identi.ca i noticed the…", Created 9 minutes ago, executed: 1, last: 9 minutes ago, retriesLeft: 9, error: Soft Post "@andstatus@identi.ca i noticed the…", Status code: UNKNOWN; soft; URL: https://identi.ca/api/user/jimfulner/uploads; Caused by java.net.ConnectException: Failed to connect to identi.ca/107.170.160.49:443 , CommandData: {command: update-media, id: 1673038544276, foreground, account: jimfulner@identi.ca/Pump.io "@andstatus@identi.ca i noticed the…", itemId: 63113, created:just now, CommandResult: {error: Soft}}

yvolk commented 1 year ago

Hi @DetroitLibertyPenguin I see that you looked up that error messages from the "Commands in a queue" list. So the error message is present, but it didn't pop up to you, as you want. That list of "commands" may contain lots of failures: permanent ( "E" - errors) or conceded transient ( "R" - retriable). And "C" - currently executing or waiting for the execution. It's not easy to figure out, when a server is down, and when we simply cannot connect to it due to weak connection. So app won't help you to diagnose your server's "health", there are other means/tools for that... What AndStatus can show you: if your note ("toot"...) was sent or not. Currently no separate UI element exists for that. You have to look at the note to see its status. You can open "Outbox" to see all unsent notes...