Docs
Get started

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, run npm 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 @klorad packages and that the project's .npmrc refers 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 onError option; log them while you develop.

A model does not load

  • Look at onError and 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 an assetUrl that 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):

  • received is 0: the source reports nothing. Check its address, credentials and topic, and that it is started (connectSource, or a mounted Connector in React).
  • unbound grows: no object is bound to that source and entity. Compare the object's binding.source and binding.entity with what the source reports; usually it is a typo.
  • rejected grows: the scene refused the readings, for example an invalid value.
  • late or duplicate grows: 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.