status-im / status-mobile

a free (libre) open source, mobile OS for Ethereum
https://status.app
Mozilla Public License 2.0
3.88k stars 984 forks source link

⛓️ ⬇️ Investigate Chain Down Issues #21071

Open shivekkhurana opened 1 month ago

shivekkhurana commented 1 month ago

Bug Report

Problem

The status-go backend emits a chain-down signal if it's not able to connect to a provider. This happens due to a variety of reasons outlined in the Context PR below (check PR comments).

When the chain down signal is emitted, the mobile used to show a Toast stating a chain went down.

Discord Conversation 1: https://discord.com/channels/1210237582470807632/1217172790642212946/1273600305866608641 Context: #21055

Expected behavior

Actual behavior

Reproduction

  1. Undo changes done in #21055
  2. Use the app as normal
  3. Turn off wifi and data (go offline)
  4. Turn wifi on again, try to navigate in the app

Additional Information

ilmotta commented 2 weeks ago
friofry commented 2 weeks ago

Quick update from me After discussion with @cammellos and @IvanBelyakoff, I'm focusing on 3 issues:

1) RPC client should not make requests while the app/device is offline and should queue them. 2) Do not treat whitelist errors as API failures. 2) Fix API response error handling. Each provider should have it's own error handling.