Hi,
While working with our On-Prem hosted ION server we’ve encountered an internal server error, which we were unable to debug so far.
we have a .terraindb file that is getting served via the server, we are able to get the
associated layer.json via a get query, but all subsequent queries result in internal server errors producing the below error on the server side:
TypeError: Cannot read property ‘extensions’ of undefined
cesium asset-server[13355]: at Sqlite3Tileset.getTile (/snapshot/app/node_modules/@cesiumgs/terrain-readers/lib/Tileset.js)
cesium asset-server[13355]: at processTicksAndRejections (internal/process/task_queues.js:97:5)
cesium asset-server[13355]: at async /snapshot/app/server.js:329:24

the server returned layer.json looks like:
{
“name”: “some_random_name”,
“format”: “quantized-mesh-1.0”,
“scheme”: “tms”,
“projection”: “EPSG:4326”,
“bounds”: [
-180,
-90,
180,
90
],
“minzoom”: 0,
“tiles”: [
“{z}/{x}/{y}.terrain?v={version}”
],
“version”: “1.4.0”,
“attribution”: “”,
“description”: “”,
“extensions”: [
“metadata”,
“octvertexnormals”
],
“maxzoom”: 15,
“metadataAvailability”: 10
}
initially we wanted to try removing the
“extensions”: [
“metadata”,
“octvertexnormals”
],
part of the above layer.json that is returned from the server, but we are not able to locate the file on disk.
for sake of completeness here is how we are trying to get the data from the on-prem ion server (pretty much as per the documentation):
return new Cesium.CesiumTerrainProvider({
url: serverbasepath+"/some_random_name"
});
- Is there a way to manually edit this generated layer.json file?
- is there something obvious that we are missing to get this terraindb tileset working?