Reference

Troubleshooting

Symptoms first, then the likely cause. Start with bugcapsule inspect <id>: eligibility gaps and replay divergences usually name the problem.

Connection and SDK tokens

Ask the app first: BugCapsule.status (Flutter, iOS) or BugCapsule.status() (Android, web) returns connection.state, a machine-readable reason and a message saying what to do. The SDK also prints one [bugcapsule] line (Android: under the BugCapsule log tag). None of these problems stops your app from starting. In the dashboard, compare with the token's two confirmations in Project Settings › Keys › SDK tokens.

invalid_token

The SDK can't read the token, so it runs without uploads. Usually the value isn't a full SDK token: an ingest key (bci_…), a bare credential or a secret key (bcs_…) was pasted instead, or the token was cut off or wrapped while copying. Copy the whole bcsdk.v1.… string from the dashboard again. A lost token can't be shown again: generate a new one and revoke the old one.

unsupported_token_version

The token uses a newer format than the SDK in your app understands. Update the SDK to the current release.

rejected with token_revoked

Someone revoked the token in the dashboard. The SDK stops capture and uploads for that app session. Generate a new token, ship a build with it, and keep the revoked one stopped. The token list shows a warning while apps keep using a revoked token.

rejected with token_expired

The token was rotated and its grace period ended. Builds that still carry it are refused. Ship the replacement token; next time, pick a longer grace period (up to 7 days) when you rotate, so the new build can roll out first.

rejected with token_unknown

BugCapsule doesn't know this credential: a typo, a token from another BugCapsule (for example a staging setup), or a deleted project. Check the token comes from the project you expect and generate a new one there if needed.

offline, or stuck on connecting
not_configured or disabled

not_configured: the app passed neither a token nor an explicit backend, often an empty build variable (for example BUGCAPSULE_TOKEN not set in that build). disabled: enabled is false in the app, or capture is switched off for the project (the kill switch in capture settings).

Connected, but replay isn't complete

Connection doesn't install replay instrumentation. status.instrumentation.missing lists the progressive steps still to add: network, navigation, app_state. Each platform page lists the adapter for each.

Android demo: the CLI suddenly says its token is invalid

The CLI reads its own credential from a BUGCAPSULE_TOKEN environment variable, which overrides bugcapsule login. If you exported an SDK token under that name for a Gradle build, unset it in that shell and pass it for the build command only.

Capture and upload

Nothing shows up in bugcapsule list
Web: CORS errors in the browser console

Your app's origin isn't allowed for your project yet. Send the exact origin (scheme, host and port) to your BugCapsule team; see Get your origin allowed.

Some capsules never arrive
Capsule is partial
Capsule is ineligible

A manual capture without a failure assertion. Add check/fail for the behaviour QA reports, so the capsule has something replay can check.

A secret showed up in a capsule

Delete the capsule in the dashboard, add the field name to Extra redaction keys in the dashboard's capture settings (it reaches every device at its next refresh and also re-redacts what's already buffered), then add it to your app's redactKeys or a beforeRecord hook. Rotate the leaked secret itself.

CLI sign-in

bugcapsule login doesn't open a browser

On a remote machine or over SSH there is no browser to open. Run bugcapsule login --no-browser, open the printed address on your laptop or phone, check the code and approve; the CLI on the remote machine picks it up. In CI, use a service token with --token or BUGCAPSULE_TOKEN instead.

"The sign-in request expired" or "No sign-in request has this code"

A request lasts 10 minutes and can be approved once. Run bugcapsule login again and approve the new code. If the page shows a different code from your terminal, cancel: someone else started that request.

"That is an SDK token" from bugcapsule login --token

The bcsdk.v1.… token belongs in your app's BugCapsule.init. The CLI uses your own sign-in: run bugcapsule login without --token.

"Option url is mandatory"

Your CLI is older than 0.4.1 and has no browser sign-in. Update it with npm install -g @bugcapsule/cli@0.4.1.

Replay

INCONCLUSIVE with network.unrecorded
INCONCLUSIVE with transport.unreachable

The app on the device could not reach the CLI's replay server. From CLI 0.4.2, bugcapsule run and verify check this for Android devices (adb reverse) before the first attempt; when that check fails, no attempt runs and the run is recorded as INCONCLUSIVE (exit 3) instead of being lost. An attempt that fails later because the app could not reach the server also gets transport.unreachable. Check that adb works and lists the device and that adb reverse --list shows the rule. If the CLI warns that adb restarted its server, two adb versions may be in use, and each restart drops the reverse rule: point ANDROID_HOME at the Android SDK that flutter doctor -v reports. In verify, a baseline that could not reach the server is reported unavailable (baseline.unavailable), not as not reproduced.

action.unregistered or text.untracked

The replayed build doesn't register an id the recording used: renamed, registered later than the input, or behind a feature flag. Web: BugCapsule.action() registers its replay handler only after init.

restore.late or restore.missing

Init isn't first (Android: not at the top of Application.onCreate, or from an App Startup initializer; iOS: something read UserDefaults before start; web: rendering before await init). Or state is registered after the first input. Or the replayed build lacks an integration the capture had.

*.redacted divergences on a login flow

A token or OTP was replaced on device and replayed as a placeholder, so the app took another path. Use a QA test account whose credentials aren't needed in the failing flow, or start the flow after login.

INCOMPATIBLE
FLAKY on a race

Recorded latency is replayed exactly, but idle compression can skip over a timer whose effect wasn't recorded. Try --no-compress-idle. Replace DateTime.now()/Date.now()/Math.random() with the SDK hooks.

After upgrading to the 3 November SDK and CLI releases

These come from changed defaults in the 3 November releases; see What's new.

verify says INCONCLUSIVE where it used to say FIXED
Exit code 4 (FIXED (QUALIFIED)) or 5 (UNSAFE) in CI

4: the fix held, but the only evidence is that replay got past the failure point, or the capsule is partial. Add a postcondition, or pass --accept-qualified if your team accepts that. 5: live traffic was allowed (--allow-live, or --lenient-network reaching a live dependency). Remove the flag; UNSAFE never counts as fixed.

Production capsules have no response bodies (network.noBody)

Production mode no longer records bodies by default. Set captureNetworkBodies: true if you need them, after a privacy review. Binary bodies also need the integration's opt-in.

Trace headers stopped reaching a service

Your project's settings can now only remove trace propagation targets. Add the destination to tracePropagationTargets in the app config.

The SDK refuses my backend (invalid_backend, nothing uploads)

Plain http:// works only to localhost, 127.x.x.x, [::1] and the Android emulator's 10.0.2.2. For a backend on your LAN use https, adb reverse or a tunnel. A secret key (bcs_…) is refused in an app: use the SDK token.

restore.disallowed

Replay restores only storage keys the capture's recorded storage policy allowed, narrowed by the replayed build's allowlist. Allow the key in both builds and capture again. Capsules from older SDKs have no policy and replay without storage.

Web: network.escaped on requests to my own origin

Replay is now deny by default: only static GET/HEAD loads reach the app's origin. A request the SDK didn't serve was blocked, often a dev server's live-reload socket or code that grabbed fetch before init. Replay against a production-style build. Upgrade @bugcapsule/web-replay with @bugcapsule/web.

Flutter: the app shows a replay error screen instead of starting

Replay fails closed when it can't fetch the capsule, the schema doesn't match or preflight fails; the screen shows the reason. Profile builds need --dart-define=BUGCAPSULE_ALLOW_PROFILE_REPLAY=true.

Android: captureException returns null right after init

Startup now does no disk I/O on the calling thread. Until the SDK is ready (shortly after init), events are queued and sent afterwards, so no id is returned yet. Transactions started during that window aren't traced.

Nothing is captured after a user accepted consent

On Flutter and Android, setCollectionEnabled(true) takes effect at the next launch. Status shows disabled / collection_disabled until then.

Interaction replay (spec v2)

For capsules that recorded WebSockets, platform channels or native SDKs, written by the current SDK releases (Flutter 0.4.2, Android 0.4.1, iOS 0.4.2 and web 0.4.0). bugcapsule inspect lists the capsule's dependencies, their coverage and gaps.

The CLI or SDK says specVersion 2 is newer than this reader

The capsule is spec v2 and this CLI predates it. Update the CLI on that machine or CI job with npm install -g @bugcapsule/cli@0.4.1 (native engine 0.4.2). Older tools refuse v2 capsules on purpose instead of replaying them without their interactions.

INCOMPATIBLE with dependency.unsupported (or dependency.schema)

The replayed build doesn't set up an adapter the capsule needs, or its adapter can't replay the recorded schema. The message names the adapter and dependency. Add the same integration to the build you replay (for example BugCapsuleWebSocket in BugCapsule.init's integrations), at a version that supports the schema; the dashboard's Summary lists the required upgrades. The app never starts in this case, so nothing else is reported.

INCOMPATIBLE with dependency.unrestorable

A connection or subscription was open at the periodic checkpoint the capsule starts from, and its adapter can't restore it. The capsule is ineligible (interactions.restore), and replay won't invent an open connection. Capture again so the window starts at launch: sessions shorter than the 5-minute window replay from the launch checkpoint.

dependency.late divergence or channel.late gap (Flutter)

The Flutter binding existed before BugCapsule.init ran, so plugins on the default messenger weren't covered. Make BugCapsule.init the first line of main, before WidgetsFlutterBinding.ensureInitialized() and before any plugin or EventChannel is used. Pilot adapters have the same rule: install BugCapsuleStripe before the app first touches Stripe.

ws.noPayload, or a payload.binaryMetadata gap

Replay had to deliver a frame or value that was recorded without its content: binary frames are kept as sizes only by default, and payloads over the limit, past the per-capsule budget or changed by redaction aren't replayable either. Such an attempt can't count as clean. In QA builds, keep binary frames (captureBinary: true, or a web serializer), keep messages under 64 KiB (or raise the interaction payload limit if your capture settings lowered it), or set redactedReplayable when the app doesn't branch on the redacted fields. Then capture again.

ws.unrecorded (or platform.unrecorded, native.unrecorded)

Runtime-specific

Android: attempts time out or never start
iOS: the app ignores replay
Web: the CLI refuses to start, or reports network.escaped
Flutter: pub get fails after adding the package

The package depends on every library it integrates with. Your app's bloc, riverpod, get, mobx, dio, http, go_router and shared_preferences versions must be inside its ranges even if you don't use them with BugCapsule.

Email alerts

Alert emails don't arrive
  1. Open Alerts › Email alerts › Delivery history and find the notification. pending and retrying are still on their way; failed shows the error and a hint about what to fix. Fix the cause, then use Retry.
  2. Use Send test email. It shows which addresses the mail server accepted and which it refused, with the reason. A refused recipient (a typo, a mailbox that doesn't exist) fails at once rather than being retried: correct the address.
  3. Check the recipients' spam or junk folder, and any mail filtering your organization applies.
  4. If the page says email delivery isn't set up, or the history shows that the mail server refused BugCapsule's sign-in, ask whoever runs your BugCapsule server to set up or fix email delivery.
Fewer emails than events

That is by design: duplicates are suppressed, the cooldown allows one email per issue or Capsule failure in its window, and a rule sends at most 20 notifications an hour, reporting how many it held back. Check the rule's environment and minimum severity, and which events it emails about. Inconclusive verification runs don't send Failed verification runs emails.

retrying for a long time

BugCapsule retries a failed delivery after 1 minute, 5 minutes, 30 minutes and 2 hours before marking it failed. Persistent retries usually mean the mail server isn't reachable from BugCapsule; ask whoever runs your BugCapsule server.

Jira

The Capsule shows “Jira issue unconfirmed”

Jira didn't answer in time, so BugCapsule doesn't know whether the issue was created. Use Check Jira again first; if Jira doesn't show it yet, wait a minute and check again. Retry creation is safe: BugCapsule searches Jira for the earlier attempt before creating anything, so you won't get a duplicate. If you found the issue in Jira yourself, use Link it myself with its key or URL.

Check connection reports a problem
CheckWhat to fix
CredentialsThe site URL (https://your-team.atlassian.net), account email or API token is wrong, or the API token was revoked. Create a new API token for that Atlassian account and save it.
Project accessThe default project key doesn't exist on that site or the account can't see it. Check the key (uppercase, like SHOP) and the account's project access.
PermissionsThe account can see the project but can't create issues in it. Grant it the create-issues permission in Jira.
Issue typeThe default issue type isn't available in that project. Pick one the project has (for example Bug or Task).
Required fieldsThe project requires fields BugCapsule doesn't fill. Make them optional for that issue type, or use another issue type or project.

Save changes before checking: the check uses the stored settings.

No “Create Jira issue” button on a Capsule

Jira isn't connected for the project yet: admins see Connect Jira there instead, which opens Monitoring settings › Integrations. Or your role doesn't have the issues triage permission. A Capsule that already has a Jira issue shows a Jira SHOP-123 button for that issue instead; unlink it first to use another.

Known limitations