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
offline: BugCapsule can't be reached (no network, a timeout, or BugCapsule is briefly busy). This is never fatal: Capsules and events wait in the on-device outbox and are retried with backoff. Check the device's network, proxies and firewalls; on web, also check the browser console for CORS errors (get your origin allowed).- Stays on
connectingwith no Configuration fetched: the first settings fetch hasn't finished yet. On an Android emulator, a BugCapsule running on your own computer is10.0.2.2, not127.0.0.1; a device'slocalhostis the device itself. - Configuration fetched, but no first event or Capsule: the connection works; nothing was sent yet. Trigger a handled error or a failing
check, and check the session is sampled (productionmode records ~10% of sessions; the web SDK defaults to it).
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
- Not connected. Check the SDK's status API first; see Connection and SDK tokens.
- Capture settings not fetched yet. Uploads wait until they are (the Configuration fetched confirmation). Check the device can reach BugCapsule (proxies, firewalls, a typo in an explicit URL).
- Session not sampled. In
productionmode only ~10% of sessions record. The web SDK defaults to production; setmode: 'qa'. - No
token(or explicitbackend) in the SDK config: captures are saved locally only. - Kill switch on:
bugcapsule captureshowsenabled: false. - Refused credential: a revoked, expired or unknown SDK token, a rotated
bci_ingest key in an existing setup, or abcs_key in the app. A refused credential stops capture for the session (Flutter and web also delete the local queue). - Crash capsules upload on the next launch (Android, iOS). Reopen the app.
- iOS:
BugCapsule.instrument(config)withoutBugCapsuleURLSessioninintegrationsrecords no network. Uploads only run in the foreground. - Android: missing
INTERNETpermission.
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
- The capsule is larger than the project's maximum capsule size (5 MB by default; see the dashboard's capture settings). Lower
maxBodyBytesor exclude large endpoints. - A custom integration or
beforeRecordhook writes values that aren't plain JSON, so the capsule is rejected. Check withbugcapsule inspecton the saved local file. - The device is offline or BugCapsule is briefly busy: the SDK keeps the capsule in its outbox and retries for up to 7 days.
Capsule is partial
build.gitSha: build withoutBUGCAPSULE_GIT_SHA(Flutter dart-define, Android Gradle property/meta-data, iOS Info.plist keys, web env), or a dirty tree.- Missing bodies: body capture off, excluded endpoints, bodies over the limit.
crash.persisted: written by a crash handler; expected for crashes.capability.input.pointer.replayon iOS: pointer-only flows. Add semantic actions.
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
- A volatile field (timestamp, nonce, request id) is part of the request key: add an
EndpointRulewithignoreBodyFields/ignoreQuery. - Your fix changes which requests the app sends: strict replay can't prove a fix it never saw. Capture a capsule on the fixed path. This is correct behaviour, not a bug.
- The replayed build talks to a different host or path (environment config).
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
runtime.mismatch: wrong project; use-por--runtime.- State schema: the app's
stateSchemaVersiondiffers from the capsule's periodic checkpoint. Expected after a schema change; in regression suites the test becomesstale.
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
- No baseline: the capsule has no git SHA, its commit isn't in your repository, or you replayed prebuilt artifacts. Embed the SHA at capture time and fetch full history in CI.
- The baseline didn't reproduce: the capsule's own commit never hit the failure, so a clean run on your build proves nothing. Check the capsule with
bugcapsule runfirst. - No evidence: the replayed SDK is older than verdict v2, or the capsule came from an exception and no postcondition ran. Add
BugCapsule.expect(…)for the flow.
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)
- The replayed app opened a connection, sent a frame or made a call the recording doesn't have. Replay fails it (a connection error,
bugcapsule.unrecorded) instead of reaching the real service. - A volatile query parameter is part of the connection key: add it to
ignoreQuery. - Your fix changes what the app sends or connects to: like
network.unrecorded, strict replay can't prove a fix it never saw. Capture a capsule on the fixed path. - The capsule was captured without that integration (added to the app later, or its adapter turned off in your capture settings), so there is nothing to serve. Capture a new capsule with the integration on.
Runtime-specific
Android: attempts time out or never start
- The emulator must be unlocked once after boot; AVDs with a PIN can't be unlocked by the CLI.
testInstrumentationRunnerisn'tBugCapsuleReplayRunner, or the variant isn't debuggable (replay is refused).bootTimeoutSecondsinbugcapsule.jsonmust be a string ("300").
iOS: the app ignores replay
- The build configuration doesn't define
DEBUG(ios.configuration). replayTestdoesn't point at your test (<UITestTarget>/BugCapsuleReplayTests/testReplay); withoutuiTestTargetthe default target name isUITests.- Physical devices aren't supported by the launcher; use a simulator.
Web: the CLI refuses to start, or reports network.escaped
- Something already serves
web.url(maybe an old build). Stop it, or pass--app-urlto use it deliberately. allowReplayis false in the build the CLI serves; set it viaweb.env.- Requests to other origins (fonts, CDNs, analytics) are blocked: add static ones to
web.allowOrigins; make the SDK init before code that capturesfetch.
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
- Open Alerts › Email alerts › Delivery history and find the notification.
pendingandretryingare still on their way;failedshows the error and a hint about what to fix. Fix the cause, then use Retry. - 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.
- Check the recipients' spam or junk folder, and any mail filtering your organization applies.
- 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
| Check | What to fix |
|---|---|
| Credentials | The 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 access | The 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. |
| Permissions | The account can see the project but can't create issues in it. Grant it the create-issues permission in Jira. |
| Issue type | The default issue type isn't available in that project. Pick one the project has (for example Bug or Task). |
| Required fields | The 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
- Not recorded as replay inputs: other HTTP stacks than the integrated ones. Optional screenshots are diagnostic images, never replay inputs; see screenshot privacy. WebSockets, platform channels and native SDKs only through their integrations in the current SDK releases; see Interaction replay.
- Only the SDK clock and random hooks are deterministic.
- Monitoring supports user context and breadcrumbs; see Monitoring. Consent decisions belong to your application: configure collection before initialization and validate both capsule and monitoring behavior.
- No cross-runtime replay. No iOS pointer replay. Web replay in Chromium only.
- Jira: no status or comment sync, no attachments.