Read the fault log
const url = 'http://pwrman.local/api/v1/faults?offset=0';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://pwrman.local/api/v1/faults?offset=0'Eight entries per page, newest first.
Authorizations
Section titled “Authorizations”- None
- token
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”How many of the newest entries to skip. Use 8 for the second page.
Responses
Section titled “Responses”One page of the fault log.
object
This controller keeps a fault log.
Entries in the log.
object
Entry number; counts up for the life of the log.
Unix time; 0 for entries logged before the controller knew the time.
Seconds since the controller started.
The port; 0 for chassis entries.
fault (a port fault), probe_fail (a blade did not answer when
checked), boot (the controller started), bus (the input voltage
went out of range or came back) or pd_reset (a USB PD reset).
The port’s output power at the time; 0 for boot.
The port’s contract at the time; 0 for boot.
What happened, in words.
Example
{ "available": true, "count": 4, "offset": 0, "faults": [ { "seq": 41, "epoch": 1791255690, "uptime_s": 262840, "port": 4, "type": "fault", "code": 256, "arg": 0, "power_w": 26.4, "contract_w": 27, "text": "ocp" } ]}Auth_read is on and the token is missing or wrong.
object
Why the request was refused, in words.
Example
{ "error": "bearer token required"}USB Type-C® and USB-C® are registered trademarks of USB Implementers Forum.