Documentation menu

Docs

Troubleshooting

Open the browser console. Everything the widget says starts with [nikoori], and it tries to tell you the fix rather than the error.

Nothing appears at all

In order of how often each one is the answer:

  1. The domain is not on the allow list. The console says so by name. The widget hides itself rather than showing a broken character to your visitors.
  2. The script never loaded. Network tab: is there a request for live2d.noiselimited.com/embed.js, and did it return 200? A 404 means the tag was pasted into a page the builder does not render, or an ad blocker ate it.
  3. No data-key. The console says Missing data-key on the embed <script> and nothing renders.
  4. The tag is in a part of the page that is not published. On site builders, draft templates and unpublished themes are the usual culprit. Save and publish.

Still nothing? Type window.nikoori in the console. undefined means the script did not run; an object means it ran and something after that refused it.

Every error code

Codes arrive on the error event as well as in the console, so you can report them from your own monitoring:

Watch for problems
nikoori.on("error", (e) => console.warn("[nikoori]", e.code, e.message));
CodeHTTPWhat to do
origin_not_allowed403This page's domain is not on the character's allow list. Add it under Dashboard → your character → Security and reload. A character with no domains listed allows nothing at all — that is the most common version of this.
unknown_key404No character has this data-key. Usually a truncated copy-paste or a key from a character that was deleted. Copy the snippet again from the dashboard.
invalid_request400The key is missing or malformed. Check that data-key is actually on the script tag.
no_llm_key_configured400Chat mode, but the character has no AI provider key. Add one, or switch to data-mode="avatar", which needs none.
unknown_embed_key404The chat endpoint does not recognise the key. Same causes as unknown_key.
upstream_error502Your AI provider refused or failed. Use the Test button on the character's Settings page — it shows the provider's own message, which usually names the problem (expired key, unknown model, no credit).
llm_key_unreadable500Your stored key could not be decrypted. Save the key again; if it repeats, tell us.
avatar_unavailable—The 3D character could not load, so the still image stays and the chat carries on. Almost always a Content Security Policy blocking live2d.noiselimited.com, or a browser with no WebGL.
network_error0The request never reached us: offline, an ad blocker, or a corporate proxy. Check the Network tab for a blocked request to live2d.noiselimited.com.
demo_rate_limited / demo_budget_reached429Only ever seen on our own playground, which runs on a shared demo key with a cap. Your key has no such limit.

The domain is not allowed

How the check actually works, so you can predict it:

  • The browser's Origin header is what we trust. A page cannot forge it.
  • Listing example.com also allows www.example.com, shop.example.com and any other subdomain. Listing www.example.com does not allow the bare domain — list the bare one.
  • Protocol and port are ignored, so http:// and https:// both work once the hostname is listed. You can paste a full URL; only the hostname is kept.
  • An empty list allows nothing. A new character starts empty.
  • Opening the file directly (file:///…/index.html) never works: the browser sends no usable origin. Run a local server and add localhost to the list.

CORS

Our endpoints are built for cross-origin use: they answer preflights, echo your origin, use no cookies, and accept only Content-Type as a custom header. If you see a CORS error in the console it is almost never CORS configuration — it is one of these:

  • A 403 or 404 underneath. A refused request often surfaces as a CORS message in the console. Look at the Network tab for the real status and the JSON body, which names the code.
  • A proxy in front of your site rewriting or stripping the Origin header.
  • A Content Security Policy blocking the request before it is sent — see below. The browser reports that differently from CORS, but people often read them as the same thing.
Do not proxy our endpoints through your own server “to fix CORS”. The origin check is the security boundary, and a proxy replaces your visitors' origin with your server's.

Content Security Policy

If your site sends a CSP, these are the directives the widget needs:

Minimum additions
Content-Security-Policy:
  script-src  'self' https://live2d.noiselimited.com;
  connect-src 'self' https://live2d.noiselimited.com https://*.backblazeb2.com;
  img-src     'self' data: blob: https://live2d.noiselimited.com;
  style-src   'self' 'unsafe-inline';
  • script-src — /embed.js, plus the 3D chunk it loads on demand from the same origin.
  • connect-src — the key check, the configuration, the chat stream, the analytics beacon and the character download. The download is a redirect to our storage provider, so allow it too if your policy is strict about redirects.
  • img-src — the character's still image, and blob: because the 3D file's textures are decoded to blobs by the loader. Without blob: the character loads untextured.
The one we cannot work around yet. The widget injects its stylesheet as a <style> element inside its shadow root, which a strict style-src without 'unsafe-inline' will block — you get an unstyled widget rather than none at all. We do not support a CSP nonce yet. If 'unsafe-inline' in style-src is not acceptable on your site, tell us at hello@nikoori.com; it is a small change and we will prioritise it by demand.

It appears, but behaves oddly

“embed.js is included twice”

The second copy is ignored and logs that warning. Usually the tag is both in the theme and in a tag manager. Remove one.

The character never becomes 3D

The still image is the deliberate fallback. It stays when there is no WebGL, when the 3D chunk is blocked, or when the character file fails — and the chat keeps working throughout. Check the console for avatar_unavailable and the Network tab for a blocked request.

The layout or colour was ignored

Both are validated: an unknown data-layout and a data-accent the browser does not recognise as a colour each log a warning and fall back to the default. The console names the value it rejected.

She barely moves

That is prefers-reduced-motion being respected: panel animations are off and the character only moves while she talks. It follows the visitor's operating system setting, not ours.

Still stuck

Email hello@nikoori.com with the page URL, the output of window.nikoori.version, and the console lines beginning [nikoori]. That is almost always enough for us to say which side the problem is on.