UMANTHIR

JavaScript / TypeScript

Warnings

Warnings report conditions that do not fail the call. They go to the logger at level warn and to onWarning({ code, message, details }).

CodeWhen
STALE_DATAThe API served a cached copy because the new tibia.com read failed (stale: true).
PARTIAL_FAILURESome worlds of online.list failed or do not exist.
RATE_LIMIT_LOW10% or less of the rate limit window is left.
RETRYINGA request is being retried, with the reason and the delay.
API_VERSION_MISMATCHThe API answered with another major version than the SDK supports.
DEPRECATEDThe API marked the route as deprecated (Deprecation or Sunset headers).
API_KEY_IN_BROWSERAn apiKey is used in a browser.
INSECURE_BASE_URLThe base URL uses http (local development only).
HOOK_FAILEDAn onRequest or onResponse hook threw; the request continued.
ts
const client = new Umanthir({
  onWarning: (warning) => metrics.increment(`umanthir.warning.${warning.code}`),
});

Next: Debug logs and hooks.

Cookies

Session, language and theme use necessary cookies and stay on. Usage tagging, such as visit analytics or advertising, starts only if you allow it.

Manage cookies

Session, language and theme use necessary cookies and stay on. Usage tagging, such as visit analytics or advertising, starts only if you allow it.