errorInformation
An error the SDK reports to your channel, for logging.
Type
assocArray
| Field | Type | Description |
|---|---|---|
message | string | What went wrong. Always present. |
code | integer | The HTTP status, on a failed request. |
url | string | The URL that failed, on a failed request. |
Messages
message | When |
|---|---|
Session config rejected - <reason> | config is missing siteID, or both pageId and eventId (no request is made), or authToken or swid (the config still loads). Reported at once. |
No static base url for site id | The siteID belongs to no Maestro environment. No request is made. |
Config request failed - <reason> | The panel config request failed: unreachable host, 5xx or invalid response. Carries code and url. Reported after the retries. |
Configuration responded with no panels | The config loaded and has no panels for this page or event. Reported after the retries. |
No event ID set to panel | A tab got focus before any panel config loaded. |
Example
m.maestro.observeField("errorInformation", "onMaestroError")
sub onMaestroError(event as object)
info = event.getData()
print "Maestro: "; info?.message; " "; info?.code; " "; info?.url
end sub
Notes
- Retries wait 1, 2, 4, 8 and 16 seconds.
- A page or event with no config in Maestro (HTTP 404) shows the panel's no-config view and sends
rendered:channelswith an emptypanelslist ononSDKEvent; don't rely onerrorInformationfor it. - Messages are for logs, not for viewers.