swarm-desktop
swarm-desktop copied to clipboard
Handle Bee status in Desktop to avoid HTTP API startup issues
Related: https://github.com/ethersphere/bee-dashboard/issues/499 and https://github.com/ethersphere/bee-dashboard/issues/558
Upon Bee launch, the HTTP API fires up and reports healthy and ready statuses. Contrary to this, some endpoints do not work for a short brief during startup period. A good example is the chequebook API, which wrongly reports that the chequebook is not deployed. This causes the issue above.
The proper fix for this is in Bee, which we have already discussed with the core team during the API feedback round. As a temporary measure, we could implement a system to track the real Bee status (stopped, starting up, running) which we expose in the Desktop, and rely on this in the Dashboard.