Skip to main content

Troubleshooting

Start with the browser's DevTools: the Console tab shows boot and render errors, the Network tab shows which request failed (config.json, a remoteEntry.js, or an API call to Kong) and whether it was a CORS preflight. The shell has no server-side logic, so almost every failure is visible there.

Boot and blank screens​

SymptomLikely causeCheckFix
Page shows only warehouse-console failed to start: Unable to load runtime configuration (HTTP 404)/config.json not mounted (chart runtimeConfig.enabled: false, or ConfigMap missing)curl -i http://localhost/config.jsonenable runtimeConfig and set runtimeConfig.apiOrigin; the console nginx deliberately returns 404 rather than the SPA fallback for this path
… Runtime configuration must be JSON, received "text/html" …something served HTML for /config.json: under npm run dev there is no public/config.json, so Vite's fallback answersNetwork tab → config.json responsecreate public/config.json with { "apiOrigin": "http://localhost:8000" } (do not commit it)
… apiOrigin must be a non-empty string / must be an absolute URL / must use HTTP or HTTPS / must contain only an originmalformed apiOrigin (e.g. localhost:8000, http://localhost:8000/api)curl -s http://localhost/config.jsonuse scheme + host + port only; see Configuration
… window.__WAREHOUSE_CONFIG__.apiOrigin is required in productiona production bundle evaluated src/config.ts without a published config (should not happen through main.tsx; seen if the bundle is loaded some other way)browser console stack traceload the shell through its own index.html
Blank page, every request 200 (index.html, assets, config.json), no "failed to start" textthe app mounted, then a render error outside any RemoteBoundary unmounted the whole tree: the shell has no root error boundary, so a crash in a shell screen (Floor, Contexts, dashboards, report screens) blanks the pagebrowser console for the React errorfix the data/code the stack points at; a payload shape change in warehouse-ops-agent (/daily-brief, /console/...) is the usual suspect
Blank page with Cannot read properties of null (reading 'useRef')two React copies: a remote's React won the singleton negotiationvite.config.ts shareStrategy and sharedkeep shareStrategy: "loaded-first" and the shared react/react-dom/react-router-dom/@warehouse/ui-kit singletons; do not switch to version-first
Shell nav renders, main area empty, no errorshould not happen any more: unknown paths render "Page not found"URLif it does, check that <Route path="*"> is still last in src/App.tsx

Remote (micro-frontend) failures​

A remote that fails to load renders the card "This module is unavailable right now." in its route only; the rest of the console keeps working. In npm run dev the card also shows the underlying error message.

SymptomLikely causeCheckFix
Unavailable card, remoteEntry.js → 502the remote's <context>-frontend pod/Service is downcurl -I http://localhost/mfes/<context>/remoteEntry.js; kubectl get pods,svc -n <apps-namespace> and look for <context>-frontendfix the remote's deployment (its own repo/chart)
Unavailable card, remoteEntry.js → 200 with text/htmlthe web gateway has no /mfes/<context>/ location for it (missing from warehouse-infra frontend_remotes), so the request fell through to the console's SPA fallback and returned index.htmlcurl -sI http://localhost/mfes/<context>/remoteEntry.js content typeadd the remote to warehouse-infra terraform/frontends.tf frontend_remotes
Unavailable card right after a remote redeploy, then finegateway still resolving the old Service IP (resolver valid=10s)retry after ~10 snone needed
Unavailable card under npm run devthe remote's dev server is not running on its port (5181–5197 with 5195 unused; returns-processing and exception-management sit off-ladder at 4010/4011)curl -I http://localhost:<port>/remoteEntry.jsstart that remote's web/ dev server
Error mentions a missing container / <name> is not a remotecontainer name in vite.config.ts does not match the remote's own federation({ name })compare with the remote repo's web/vite.config.ts (e.g. network-fulfillment is netfulfil_mfe)align the container field in src/remotes-manifest.json; src/remotes-manifest.test.tsx pins them all
Old remote UI after a remote deploythe tab still holds the previously loaded remoteEntry.js; or the remote's own nginx caches remoteEntry.jsreload the page; curl -sI .../remoteEntry.js for its Cache-Controlreload; remote cache headers live in each remote repo's web/nginx.conf
Remote remounts and refetches on every navigationa lazy() call was moved inside a componentsrc/shell/remoteComponents.tskeep every lazy(() => import("<name>_mfe/App")) at module scope
Clicking a nav item reloads the whole pageui-kit rendering plain <a href> (no NavigationProvider/RouterLink)npm run verify:routes reports FULL PAGE RELOADkeep NavigationProvider link={RouterLink} in src/App.tsx

API, CORS and data problems​

SymptomLikely causeCheckFix
Floor: "The floor view is unavailable"; dashboards: "Couldn't reach the console reports service: Failed to fetch"; Network tab shows a failed OPTIONS or a CORS errorKong CORS does not allow the page origincurl -si -X OPTIONS -H 'Origin: http://localhost' -H 'Access-Control-Request-Method: GET' http://localhost:8000/api/warehouse-ops-agent/daily-brief and look for Access-Control-Allow-Originwarehouse-infra's warehouse-cors KongClusterPlugin grants exactly web_origin (http://localhost, or http://localhost:<port> when the gateway is not on 80); enable kong_cors_enabled and keep it equal to the page origin
A remote's write fails in preflight while reads workthe request carries a header Kong's CORS plugin does not list (allowed: Accept, Content-Type, Origin, Idempotency-Key; If-Match is not allowed)Network tab → preflight responseadd the header to warehouse-infra terraform/kong-cors.tf
Same failures, no CORS error, net::ERR_CONNECTION_REFUSEDapiOrigin points at the wrong host/port, or Kong is downcurl -s http://localhost/config.json; curl -I http://localhost:8000/fix runtimeConfig.apiOrigin / Kong
Floor shows "refresh failed — showing last known"a poll of /daily-brief failed after an earlier successNetwork tabtransient: it retries every 15 s; persistent: warehouse-ops-agent is down
Floor metrics show — and "no signal from <service>"warehouse-ops-agent could not reach that upstream; the console shows the gap on purposewarehouse-ops-agent logsfix the named upstream, not the console
Contexts tiles lack the "in PICK" / "sites" badgesGET /api/fulfillment-execution/queues/PICK/depth or GET /api/facility-layout/sites failed; badges are simply omittedNetwork tabcheck those two APIs through Kong
Order Lifecycle: "Couldn't load order <id>: …"the BFF route /console/orders/<id>/lifecycle failed (404 unknown order, 5xx)Network tabcheck the id and warehouse-ops-agent
Order Lifecycle stage shows "No signal from <context>"the BFF returned null for that stage (upstream unavailable), which is different from "pending"—fix that context; not a console bug
Dashboard card "Data unavailable"that section arrived with available: falsecard text shows the BFF's errorfix the named source context
Dashboard card "Unsupported chart type"the BFF sent a chartKind other than funnel/bar/line—add the chart kind to ReportDashboard
/reports/<context>: "Report temporarily unavailable" with a 404no Kong route to that context's <context>-reports Service, or the context has no reports binary deployedcurl -i http://localhost:8000/api/<context>/reports/<name>/freshnesswarehouse-infra terraform/services.tf renders a second route /api/<context>/reports per analytics-enabled context; network-fulfillment's route lives in terraform/network-fulfillment.tf. A context without a reports deployment cannot be fixed from here
/reports/network-fulfillment: "Submission Failed" is 0 for older daysnetwork-fulfillment added ordersRejectedSubmissionFailed additively (its ADR 0015); history projected before the counter existed reads 0curl -s "http://localhost:8000/api/network-fulfillment/reports/acknowledgement?from=<RFC3339>&to=<RFC3339>"expected; not a console bug
Report numbers never move while the tab stays openevery report config computes its from/to window once, at module loadcompare the request's to with nowreload the page
/reports/<something> shows "Page not found"slug not in REPORT_ROUTES (src/features/context-reports/registry.ts)registryuse one of the nine slugs; warehouse-planning and product-master have no report screen

Local development and CI​

SymptomLikely causeFix
npm ci / vite cannot resolve @warehouse/ui-kit../warehouse-ui-kit missing or not built (dist/ absent)clone it as a sibling, then npm ci && npm run build there
npm run dev exits: port 5173 in usestrictPort: truefree port 5173
Vitest: "Invalid hook call" / null dispatchera second React instance from the ui-kit siblingkeep resolve.dedupe: ["react", "react-dom"] in vitest.config.ts
Vitest: [MSW] Error: intercepted a request without a matching request handlera component calls an endpoint the test did not stub (onUnhandledRequest: "error")add server.use(http.get(...)) for it
Vitest prints Error: remote unavailable (unit test stub) but passesexpected: every <name>_mfe/App is aliased to a throwing stubnothing to fix
Docker build: Cannot find native binding or npm EUSAGE lock file out of syncbuilding with the macOS-generated lockfilebuild with the repo Dockerfile (it installs without the lockfile)
CI guide-lint fails after moving a docs pagea .claude/ guide still cites the old pathgrep .claude/ for the path before moving
CI helm-lint, trivy-scan, docker-publish, release show "skipped"gated to PRs into / pushes to mainexpected on PRs into develop