# Troubleshooting

> What each console warning and API error means, and how to fix it.

## The launcher does not show

1. Open the browser console and look for a warning that starts with `Iris:`. Each warning links to its entry on this page.
2. Check that your Content Security Policy allows `iris-cdn.playitback.dev`. See [Allowed origins and CSP](/get-started/allowed-origins/).
3. If **Settings → Widget → Allowed origins** has entries, check that the origin of the page is one of them.
4. Check that you did not pass `launcher: false`.

## Console warnings

| Message | What happened | Fix |
| --- | --- | --- |
| `Iris: the widget did not start, because the App ID is missing or not valid.` | `Iris.init` got no `appId`, an empty one or one longer than 64 characters. | Pass your App ID as `appId`. Copy it from **Settings → Install**. |
| `Iris: ignored <option>: <value>, because it is not a valid value.` | An `Iris.init` option or a widget setting is outside its limits, such as `verticalPadding: 300`. Iris used the workspace value. | Use a value within the limits of the [`Iris.init` options](/reference/init/#options). |
| `Iris: <method> ran before Iris.init, so nothing changed.` | `identify`, `logout`, `update` or `sendMessage` ran before `Iris.init`. After an early `identify`, the contact stays anonymous. An early `sendMessage` sends nothing, and its Promise rejects. | Call `Iris.init({ appId })` first. Calls made before `iris.js` loads wait in a queue, in order. |
| `Iris: identify got no identity token, so the contact stays anonymous.` | The token is empty or not a string. Often your token endpoint failed. | Check that your server returns an identity token, then pass it as `Iris.identify({ token })`. |
| `Iris: on ignored the listener, because the event is not "unread" or "close", or the listener is not a function.` | The event name is not `"unread"` or `"close"`, or the listener is not a function. | Pass `"unread"` or `"close"` and a function. See [Events](/reference/events/). |
| `Iris: setPageContext ignored the page context, because it is outside the limits.` | The value is not a flat object, it has more than 48 keys, or a value is too long or has the wrong type. Iris kept the earlier page context. | Keep to the [page context limits](/guides/page-context/#limits). |
| `Iris: sendMessage sent nothing, because the message or its context is outside the limits.` | `body` is empty or longer than 5,000 characters, or `context` is not a flat object, has `url` or `title`, or goes over the [page context limits](/guides/page-context/#limits) together with the page context. The Promise rejects. | Keep to the [`Iris.sendMessage` limits](/reference/methods/#send-message). |
| `Iris: update ignored <option>, because update changes only launcher.` | `Iris.update` got an option other than `launcher`. Iris applied `launcher` and ignored the rest. | Pass that option to `Iris.init`. |
| `Iris: ignored the unknown method "<name>".` | A queued call names a method that `iris.js` does not have, often because of a typo. | Check the method name. Copy the loader snippet again from **Settings → Install**. |
| `Iris: <action> failed: <reason>.` | A request to Iris failed, for example because the network dropped or Iris had an error. | Check your connection and the network tab of your browser, then reload the page. |

## API errors

You see these in the network tab of your browser. The console also shows a warning that links here.

| Message | What happened | Fix |
| --- | --- | --- |
| `403` `origin_not_allowed` | Iris refused the origin of the page: a website that is not in a filled allowed origins list, or a page without a web address (`Origin: null`) and no valid app key, or the chat page of a mobile app with a missing, wrong or turned-off app key. The message names the origin, or says `A request without an Origin header`. The console shows `Iris: <action> failed, because the origin of this page is not allowed.` | For a website, add the origin in **Settings → Widget → Allowed origins**, or empty the list. For a page without a web address, pass `appKey` next to `appId` in `Iris.init`. For a mobile app, pass `appKey` in the chat page URL. In both cases, check that the app key is on in **Settings → Install**. See [Allowed origins](/get-started/allowed-origins/), [App key](/guides/app-key/) and [React Native](/guides/react-native/). |
| `401` on the session request | Iris rejected the identity token. It expired, its signature does not match the identity secret, or `sub` is missing. The console shows `Iris: <action> failed, because Iris rejected the identity token.` | Sign a new identity token with the current identity secret and the required `sub` claim. Check your code with the [test token](/guides/identify-users/#check-your-code-with-the-test-token). |
