Error while fetching current agents from the management server. Is it running?
Error while fetching current agents from the management server. Is it running?:
the web dashboard uses javascript to fetch registered agents from the /api/v1/agents endoint, but it seems we have some resopnse issue:
as possible issues could be:
- Timeouts
- Parsing Issues
- Server Errors
but there are not apparent errors with code, and with timeouts the problem would be latency, but running as a local host, we dont depend on external router connectios.
That error can happen when fetching agents from /api/v1/agents takes longer than a tick.
JavaScript tries to fetch agents in 500ms interval, if making a request takes more time than 500ms then signal controller will abort it: https://github.com/distantmagic/paddler/blob/3042f37ce779687c05e7f9894106d47e2c938e73/resources/ts/components/Dashboard.tsx#L86
The real issue is - we need to determine why does it take 500ms to fetch agents. Paddler stores the list in memory, so usually that request takes <1ms.
yes, it wanna abort before trying other request without having results from the previous one.