Troubleshooting
What to check when the packages do not install, the 3D view stays empty, a model does not load, or readings do not arrive.
npm says a package is not found (404)
The packages are private, and npm answers 404 for a private package your account cannot read.
- Run
npm whoami. If it prints nothing, runnpm login. - Run
npm view @klorad/api version. If it still says not found, your npm account has not been given access: request package access with your npm user name. - In CI, check that the token is a granular token with read access to the
@kloradpackages and that the project's.npmrcrefers to it (Install).
npm answers 401 or 403
You are not signed in, or the token has expired or lacks read access. Sign in again with
npm login, or make a new read only token for CI.
The install fails on the Node version
The packages need Node.js 18 or newer; @klorad/protocols needs Node.js 20 or newer. Run
node --version.
The 3D view is empty, or says the preview is unavailable
The three.js, Cesium and GL map renderers need WebGL.
- Open the examples in the same browser. If they say "The 3D preview is unavailable in this browser", WebGL is off or not supported there: turn on hardware acceleration in the browser's settings, or try another browser.
- If the examples work but your view is empty, give the view's container a height: a view fills its parent, and a parent with no height has none to fill.
- Errors from the renderer go to its
onErroroption; log them while you develop.
A model does not load
- Look at
onErrorand the browser's network panel for the file's request. - A file on another origin must be served with CORS headers that allow your site, or the browser refuses it.
- A model named
asset:<id>loads only when you give the renderer anassetUrlthat says where the file is fetched from (Import models). - The Cesium renderer loads its workers and assets from
CESIUM_BASE_URL; copy them to a folder your site serves first (Cesium renderer). - A model stands on its own origin, in metres. A model drawn in millimetres looks a thousand
times too large until you give it
scale: 0.001.
Readings do not arrive
Read connection.stats() first (Integration):
receivedis 0: the source reports nothing. Check its address, credentials and topic, and that it is started (connectSource, or a mountedConnectorin React).unboundgrows: no object is bound to that source and entity. Compare the object'sbinding.sourceandbinding.entitywith what the source reports; usually it is a typo.rejectedgrows: the scene refused the readings, for example an invalid value.lateorduplicategrows: readings arrive older than, or the same as, one already held. That is the scene keeping the newest; check the source's timestamps (Time).
Only a Digital Shadow or a Digital Twin takes readings. An object without correspondence: "shadow" or "twin" and a binding never shows any.
Readings show as stale
A reading is stale when it is older than staleAfterMs. That is the scene telling you the
source has gone quiet. If your source reports less often than that, raise staleAfterMs for
those objects (Time).
Readings reach the server but not the browser
The packages do not include a transport from a server to browsers. A connector running on a
server fills a scene on that server; your application carries the readings to its pages. In the
browser, a pollingSource whose read() calls your endpoint is the shortest path; a source of
your own over a WebSocket or server sent events pushes instead
(Integration).
Connect server data to your browser scene runs the
whole path.
An IFC building stands in the wrong place
Where an IFC file places the building on Earth (IfcMapConversion) is not read yet. Place the
building's object yourself (Show a building as BIM).
Still stuck
Tell us what you ran and what you saw.
Something wrong or unclear? Tell us.
Quickstart: a scene with a live reading
Create a Next.js app with a selectable 3D scene and a simulated occupancy reading, from a starter you download and run. You then have a starting point for connecting your own data.
Guides
One task per page, for developers who have done the quickstart, with the smallest code that does the job.