Skip to main content

errorInformation

An error the SDK reports to your channel, for logging.

Type​

assocArray

FieldTypeDescription
messagestringWhat went wrong. Always present.
codeintegerThe HTTP status, on a failed request.
urlstringThe URL that failed, on a failed request.

Messages​

messageWhen
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 idThe 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 panelsThe config loaded and has no panels for this page or event. Reported after the retries.
No event ID set to panelA 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:channels with an empty panels list on onSDKEvent; don't rely on errorInformation for it.
  • Messages are for logs, not for viewers.