Open TerminadaPool opened 2 days ago
Since Koios can occasionally take too long to respond, the p2p-wallet just retries if the response times out. However, in this case, it continuously timed out and continuously retried...
In addition to increasing the default timeout, I will add a cap for the maximum number of tries. Queries should never take more than a few minutes so users should never wait hours to find a bug.
While exploring this bug, I'm now seeing a 504 Gateway Timeout
response (after adding the cap to the possible number of retries). This occurs whenever Koios take more than 30 seconds to respond. When looking up the pool info for each registered pool, sometimes Koios would take over a minute to respond while other times it would respond within 5 seconds. The 504 Gateway Timeout
is actually fairly common when querying pool info so I think this is why the pool picker kept getting stuck in a loop. This is only an issue for mainnet.
I've opened a bug about it on Koios.
When trying to change my wallet stake delegation it seems to get stuck in a loop with screen showing "syncing pools...". Eventually after hours of letting it run, I see the following error:
As you suggested over matrix chat, changing the following code timeout line at: https://github.com/fallen-icarus/p2p-wallet/blob/42c83397feba6511cf44babc387bf841cce46de0/app/P2PWallet/Actions/Query/Koios.hs#L107
from:
to:
Appears to fix the issue.