Loosen

Troubleshooting

Open the browser console: every failure is also an error event, and nothing the widget does throws into your page.

SymptomCause and fix
Nothing appearsThe query has results, or no filters are set: that is the intended behaviour. Otherwise check the error events (onEvent), and that you call widget.update() after every filter change the visitor makes.
The panel is stale after a clickYour applyRelaxation must change your filters synchronously, or return a promise that resolves once they are changed: the widget then analyses again by itself (autoUpdate, on by default). If you switched autoUpdate off, call widget.update() yourself.
“Unlicensed copy” and a console warningThe warning says why: no licence key, malformed key, bad signature, expired, or the page's domain is not on the licence (check your domains on your licence page; localhost always works).
“Too many rows to analyse in the browser (N > M)”More rows than your licence's item limit (1,000 when unlicensed). Upgrade the licence, send fewer rows, or use server mode.
“The explanation is unavailable right now.”Server mode: look at the error event. HTTP 403 (origin_not_allowed) means the page's origin is missing in LOOSEND_ALLOWED_ORIGINS; 403 (origin_not_licensed) that your licence's domains do not include the page's domain; 401 (read_key_required) or 403 (read_key_invalid) that server.key is missing or was rotated; 400 (too_many_constraints) that the page sent more constraints than the server allows (24 by default); 429 is the rate limit; a network error or timeout means endpoint is wrong or the server is down.
“These filters are too complex to explain.”The work budget was exceeded (error code too_complex): the visitor has many filters that conflict in many different ways. Lower maxSize, or remove filters. The server answers 422 too_complex in the same case.
Undo does nothing, or an error event with code restoreYour restoreConstraints threw or its promise rejected (the message says why). It must put your filters back so that getConstraints() returns the array it receives; for a form use binding.restoreConstraints. Do not pass it when applying a relaxation reloads the page (filters in the URL). The Undo also disappears, by design, as soon as the visitor changes the filters by other means; call widget.update() after every such change.
No result counts, or suggestions in a different order than beforeCounts appear on the global suggestions only (not under “Why?”) and can be switched off with showResults: false. Suggestions are sorted by the price of the change (order: "cost", the default); use order: "canonical" for the former order (fewer filters first). In server mode the server needs loosend 1.0.0 built from the same release as the widget (an older server answers the former response shape): download it again from the downloads page.
Loosen: unknown option "x"A typo in the options passed to mount; the message lists the valid names.
attribute "x" must be declared with kind...Browser mode needs attributes[x].kind for every attribute your constraints mention.
op "le" is not valid on textOperator and kind do not match: le/ge need numeric; allOf/anyOf/noneOf need set; in/notIn/eq/ne work on numeric and text.
Suggestions are not in your languageSet lang: "fr" (or the lang attribute of your <html>): see Language. A language the widget does not have shows English. Characters such as ≤ or the Arabic text look garbled: the script file must be served and read as UTF-8 (Content-Type: text/javascript; charset=utf-8, or <script charset="utf-8">; the Loosen file is).
Suggestions are not in your fontThe widget inherits your font; set --loosen-font (see look, language and accessibility).
My texts override throws unknown text or cannot be an objectThe message lists the valid keys. Only results, more, actionMin, noneMin and minAfter accept an object of plural forms, and it needs other. The old resultOne, resultMany, actionOne, actionMany, noneOne and noneMany are now results, action + actionMin and none + noneMin.
No explanation when minItems is above the data sizeIf the data has fewer rows than minItems, no relaxation could help, so nothing is shown.
The server refuses my licenceCheck that the plan is Business or trial (Starter is browser-only), that the key is complete and in LOOSEND_LICENCE, and read licence in GET /health: it says why. The public key that checks licences is built into the server; a LOOSEND_LICENCE_PUBLIC_KEY setting is ignored.
The server answers 403 item_limitThe catalogue would exceed your licence's item limit (1,000 in evaluation mode). Nothing was applied.
My licence page link is lostSearch your inbox for “Your Loosen licence”, or write to david@sicena.com from the address you used to buy.