bitkit icon indicating copy to clipboard operation
bitkit copied to clipboard

[Bug]: Refresh Failed toast often seen when reopening app from minimised

Open catch-21 opened this issue 1 year ago • 9 comments

Describe the bug

When I reopen the app from minimised state I often see 'Refresh Failed' 'An error occurred and couldn't refresh the wallet. Please try again.' toast message. A manual refresh will work and there appears to be no connection issue. We should only show this toast when there is a legitimate problem.

Reproduce

  1. Close Bitkit to minimised state
  2. Wait a short while (2-5 minutes)
  3. Reopen Bitkit from minimsed state
  4. Observe 'Refresh Failed' error toast
  5. Perform manual refresh and confirm there is no problem with refreshing

Screenshots / Recording

https://github.com/synonymdev/bitkit/assets/74595920/1ddaad0b-cd00-4a93-a4ba-6ce4a2a319e9

Operating system

Android 13 TKQ1.221114.001

Bitkit version

8908053a3198a167c16a3062fb68282160a63112

Log output

No response

catch-21 avatar Jun 20 '24 10:06 catch-21

This appears to be related to when new blocks are minded whilst app is minimised. Reproducible on iOS and android when mining blocks in staging env.

catch-21 avatar Jun 20 '24 13:06 catch-21

@pwltr we still have the same issue on latest internal release (v127). It's now happening very often.

JeanlChristophe avatar Jul 01 '24 12:07 JeanlChristophe

Still occurring in v130

catch-21 avatar Jul 26 '24 08:07 catch-21

Verified in 2e3cf89d424d3f05fe5c2727ab02b3c9f318454a Not seen it at all. LGTM.

catch-21 avatar Aug 29 '24 15:08 catch-21

Sadly this is not completely fixed yet. It's way less likely too appear now but still does sometimes. Reopening but can be considered lower prio now imo.

pwltr avatar Aug 29 '24 15:08 pwltr

Let's see if it's happening again.

JeanlChristophe avatar Sep 03 '24 11:09 JeanlChristophe

I have seen it once recently.

catch-21 avatar Sep 04 '24 06:09 catch-21

This is currently reproducible for me. It will appear roughly 10 seconds after running bitkit (cold start). I am in a different region atm and I'm suspicious that could be related.

https://github.com/user-attachments/assets/3820d6ae-35ce-4336-a025-ca1e28268b21

catch-21 avatar Sep 26 '24 15:09 catch-21

@pwltr Failed toast is happening really frequently now.

JeanlChristophe avatar Feb 12 '25 09:02 JeanlChristophe