Skip to main content

Troubleshooting

The client has no server-side logic of its own, so almost every failure is visible in the browser. Start with DevTools: the Network tab shows which request failed and what answered it (Kong, this nginx, or nothing), the Console tab shows lines prefixed [floor] (from src/lib/log.ts), and Application → Local Storage shows wfc.outbox.v1 (undelivered commands) and wfc.station.v1 (station session). The operator never sees raw JSON or a status code, so the screen text is a hint, not a diagnosis; see the message table in API contract.

Operator sees an unexpected message​

SymptomLikely causeCheckFix
"The floor service cannot be reached at this address. This is a setup problem"A 404/405 that is not a service problem: the edge did not route /api/<context> to Kong. This nginx answers /api/ with 404 problem+json "No API at this address" on purposeNetwork tab: response body contains No API at this address, or is an HTML pageroute /api to Kong at the page's own host (see Runbook); in dev check FLOOR_API_TARGET
"The floor service is not answering properly"5xx that is not 429/502/503/504 (those are retried silently), or a gateway HTML pageNetwork tab → status and bodycheck the owning service behind Kong; the client has nothing to fix
"The server could not be reached. Your ... is saved on this device."the request failed at network level (no HTTP answer), timed out after 15 s, or the edge replied 429/502/503/504Network tab: request cancelled or 5xx; [floor] request did not reach the edge / edge asked us to retry in the consolenothing to do for the operator; the outbox replays when the edge answers. If it persists, fix the edge or Kong
"You are offline. Your ... is saved on this device."the browser reports no networkbanner "You are offline"restore Wi-Fi; replay is automatic
Banner "Sending saved actions: N saved actions are waiting" never clearsthe oldest outbox entry keeps failing with a retryable answer, and replay stops at the first stuck command to keep orderLocal Storage wfc.outbox.v1: first entry, its attempts and path; Network tab: the status it getsfix the edge or service that answers 5xx/429; "Retry now" replays immediately. Last resort: delete wfc.outbox.v1, which discards the saved commands
"The system does not know that barcode" / "That is not the item for this pick" on a PICK scanthe scanned GTIN is unknown to fulfillment-execution, or belongs to another SKU or pack level[floor] command rejected pick-scan 4xx <code> in the consolerescan the right item or case; nothing was counted
"The request could not be matched to your last action"idempotency-key-required or -reused: the service saw a missing key, or a key with a different bodyNetwork tab: request has Idempotency-Key?reload and retry; if the key is missing a screen bypassed the runner, which is a bug
"An extra task was claimed when the connection came back"a task-claims was saved offline, replayed after the operator had already claimed another task. fulfillment-execution does not deduplicate task-claims by keythe warning is shown by designignore the extra task: its lease lapses back to the pool
"This task was already completed" after tapping Completethe first completion reached the service but its answer was lost; the replay got 409 task-already-completed, which the client treats as successnone neededpull the next task
"You no longer hold this task"the lease ran out, or another station took the task (task-not-claimed, task-not-owner, task-not-found); the client drops the held tasklease-renewals failing in the Network tab before itpull the next task; check that renewal is not blocked (see lease rows below)

Station and lease​

SymptomLikely causeCheckFix
"This station is not registered with the system"station-not-found: the service restarted or lost its in-memory stationsNetwork tab: task-claims or check-in → 404use "Register this station again" on the station screen
Check-in answers "Someone is already checked in"station-occupied; also seen when a check-in replay lands after the first one was appliedstation screen shows operatorcheck the other person out, or use another station
Countdown turns to "Could not renew"lease-renewals cannot reach the edge. It is never queued; it is retried every 10 s from half-lifeNetwork tab: lease-renewals failingrestore connectivity before the claim runs out; otherwise the claim lapses
Lease length looks wrongthe length is leaseExpiry minus the response Date; outside 10 s to 60 min it falls back to 5 minclaim response leaseExpiry and Datenone; the client works in the local clock so device clock skew does not matter
"Cannot finish here" on the task screenthe held task type has no confirmation plan in this version (PACK, SLAM, REBIN, DISPATCH, ARRIVAL)the task type in the headerask the lead to move the task; the lease keeps renewing while the page is open
Task screen says "No task in hand" after a reloadwfc.station.v1 was cleared, or its held section failed validation (loadPersisted drops it)Local Storagepull the next task

Scanning​

SymptomLikely causeCheckFix
A scan is ignoredsame value twice within 400 ms is one scan (scanner bounce), or the value is longer than 128 characters, or empty after control characters are strippedsrc/lib/scan.tsrescan after a moment
Scanner types into nothingfocus is on a button or another field; ScanInput re-takes focus only when it fell on the page backgroundclick the scan fielduse "Type instead" for a keyboard and an on-screen Enter
Soft keyboard covers the screenScanInput sets inputMode="none" in scan modetap "Type instead" only when neededtap "Back to scanning"
"Misread" on a GS1 label, nothing sentthe GS1 parser (src/lib/gs1) rejects a wrong check digit before any requestthe SSCC/GTIN check digitrescan or key the digits in manually; do not use the OpenAPI example SSCC 340123450000000013 (invalid check digit)
SSCC scanned in Cases/Items mode (or a GTIN in Carton mode)the three-way choice sets the expected kind; a mismatch is refused on the devicethe button selectedpress the button that matches the barcode

Receiving​

SymptomLikely causeCheckFix
Receipt list is empty or cannot loadGET /receipts?state=Open&limit=50 failed or returned no open receipts; only the first page is readNetwork tabopen the receipt by its number instead
Scan accepted but a finding appearsnot an error: the goods are here and the service reports a discrepancy (nine kinds)Receiving flowfollow the "what to do" text
DuplicateSscc after a retried scanthe service did not deduplicate the replay by Idempotency-KeyNetwork tab: two POST .../scans with the same key and different answersper the receiving flow page this is the documented symptom of a deployment that does not dedupe; report to inbound-receiving
Print label does nothing usefulthe label uses window.print(); the service has no printer driverbrowser print dialogchoose a printer; the print CSS shows only the label
Receipt cannot be reloaded offlinereads are plain GETs and are never cached or queuedbanner shows offlinescans can still be taken and are queued

Offline shell and service worker​

SymptomLikely causeCheckFix
No offline app shell on a handheldbrowsers only run service workers on https or http://localhost; an RF gun on http://<lan-host> runs without one. The outbox still worksApplication → Service Workers is emptyserve the app over https for offline shell loading
Old UI after a deploya page that is already open keeps its JavaScript; the new worker takes over on the next navigationApplication → Service Workers → cache name floor-shell-<hash>reload the page
Page stuck on an old versionsw.js/index.html cached by an intermediate proxycurl -sI <host>/sw.js must show Cache-Control: no-cachefix the proxy; nginx sends no-cache for sw.js, index.html and the manifest
No service worker in npm run devby design: registration happens only when import.meta.env.PROD is truenpm run build && npm run previewtest worker behaviour on a preview build
Commands vanished after clearing site datathe outbox lives in localStorage (wfc.outbox.v1)n/anothing to recover; warn operators not to clear site data while "saved on this device" is shown
Outbox lost on every reload in a private windowlocalStorage throws, so defaultStore() falls back to memory[floor] lines, empty Local Storagedo not run the floor client in a private-mode window

Local development and CI​

SymptomLikely causeFix
npm ci / vite cannot resolve @warehouse/ui-kit../warehouse-ui-kit missing or unbuiltclone it as a sibling, then npm ci && npm run build there
npm run dev exits: port 5174 in usestrictPort: truefree the port
/api calls return connection refused in devFLOOR_API_TARGET points at Kong (default http://localhost:8000) and the cluster is not runningstart the cluster, or run npm run stub-api and set FLOOR_API_TARGET=http://localhost:8787
E2E flow cannot launch ChromiumPlaywright browsers not installednpx playwright install chromium, or set E2E_CHROMIUM
Lease renewal is skipped in e2e:stationthe stub was started with the default 5-minute leasestart it with STUB_LEASE_MS=20000
Pick scan or case-breaks fails against the stubthe stub implements neither endpointuse the unit tests (PickScan.test.tsx, TaskScreen.test.tsx) or a real fulfillment-execution
Vitest "Invalid hook call" or a null dispatchera second React instance from the ui-kit siblingkeep resolve.dedupe: ["react", "react-dom"] in vite.config.ts (vitest merges it)
Vitest throws fetchStub: unhandled <METHOD> <url>src/test/fetchStub.ts throws on an unmatched request by designadd the route to the test's stub
Docker build: Cannot find native bindingbuilding with the macOS-generated lockfilebuild with the repo Dockerfile, which installs without the lockfile
CI docs failsa broken link, an MDX error or a type error in docs/run make docs (or npm ci && npm run typecheck && npm run build in docs/)
docs fails with an MDX error on <name> or {id}a bare angle bracket or brace outside backtickswrap it in backticks