paddler icon indicating copy to clipboard operation
paddler copied to clipboard

Error while fetching current agents from the management server. Is it running?

Open Propfend opened this issue 1 year ago • 2 comments

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.

image

Propfend avatar Jan 09 '25 18:01 Propfend

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.

mcharytoniuk avatar Jan 09 '25 19:01 mcharytoniuk

yes, it wanna abort before trying other request without having results from the previous one.

Propfend avatar Jan 10 '25 09:01 Propfend