# Troubleshooting

> Resolve common widget, asset, auth, storage, and realtime problems.

[Web documentation](https://threads.teamkrope.com/docs/troubleshooting/) · Inner Threads v1.3.0

For Composer, migration, repair, and purge errors, see [Install and upgrade errors](https://threads.teamkrope.com/docs/package-troubleshooting/).

## Composer cannot find the package

Check your version constraint and installed PHP and Laravel versions against [Installation](https://threads.teamkrope.com/docs/installation/#requirements). For supported versions, verify the package is visible to Composer on Packagist. A [public GitHub VCS source](https://threads.teamkrope.com/docs/installation/#install-from-github) is also available.

## The widget is missing

- Verify `enabled` is on, the Blade view is authenticated, and the widget uses the same Laravel guard as the API.
- Check the browser’s network panel for the versioned asset URLs and the API bootstrap response.
- Run `php artisan route:list --path=inner-threads` and rebuild stale config and route caches.
- For static assets, check your configured path and republish with `php artisan vendor:publish --tag=inner-threads-assets --force`.

## Request returns 401 or 419

A `401` may indicate an expired session or mismatched guard. A `419` usually means the CSRF token or session is stale. Confirm the page and API share the intended middleware and session cookie. Manual mounts can supply a `csrf` function.

## Group or attachment returns 404

Confirm the account belongs to the intended workspace and has a visible membership or message. For a missing preview, check the file exists on the private disk, its MIME type is supported, and its preview setting is enabled.

## Contact is missing or cannot be added

- Confirm the API uses the intended Laravel guard and workspace and that the host directory returns the contact from both `search()` and `profiles()`. Check any active-user filter.
- If role filtering is enabled, check the viewer's resolved role and its rule first. Verify the rule allows the target's role or that the target is an eligible shared contact for the exact workspace key. An empty directory and a `422` on direct chat lookup or invitations can result from a missing grant.
- If the server logs report an invalid resolver, check that `visibility.role_resolver` is an autoloadable class implementing `ContactRoleResolver`. Rebuild cached configuration after changing it and reload the widget.
- If a page of inbox contacts is empty, follow **More conversations** or search for a specific name. The role filter can leave gaps between directory pages.

See [Contact visibility](https://threads.teamkrope.com/docs/contact-visibility/) for a configuration and verification example.

## Upload fails

Use multipart form data. Check the detected MIME type against the configured allowlist. Check PHP’s `upload_max_filesize`, `max_file_uploads`, and `post_max_size` along with server and proxy body limits. The request size includes every file in the batch and multipart overhead.

## Voice or link preview is unavailable

Voice capture needs microphone permission and a secure context such as HTTPS or localhost. Website previews need the feature enabled, cURL, DOM, and a reachable public URL. A plain link remains sendable. See [Attachments and voice](https://threads.teamkrope.com/docs/media/).

## Messages do not decrypt after an upgrade

Restore the previous dedicated key in `INNER_THREADS_ENCRYPTION_PREVIOUS_KEYS` or restore the original active key as appropriate. If the app relied on `APP_KEY`, check that it stayed the same. Use [key rotation](https://threads.teamkrope.com/docs/encryption-storage/#rotate-a-key) once older ciphertext is readable.

## Realtime falls back to polling

Make the host broadcast client available before the widget mounts. Verify private channel auth at `/broadcasting/auth` and check that guard and workspace resolution match the API. See [Realtime and notifications](https://threads.teamkrope.com/docs/realtime/).
