Small geojson upload not working

Hi There.

When I upload a pretty small geojson (3.1mb) (also tried shapefile) my instance of kibana hangs and the webpage goes blank. Preview works fine, its when its indexing. It seems similar to this problem: [Maps] Error seen in maps while uploading a geoJSON - Uncaught (in promise) TypeError: Invalid attempt to spread non-iterable instance · Issue #60710 · elastic/kibana · GitHub

I'm on 8.3.3 and docker. I have all privelages. have tried different computers and browsers. Monitoring RAM usage shows it is at a high level but not near the heap size.

The file can be downloaded here: fin.geojson - Google Drive

This error code comes up in chrome console (note the typeerror at the bottom):

408 (Request Timeout)

(anonymous) @ securitySolution.chunk.19.js:3
window.fetch @ securitySolution.chunk.19.js:3
fetchResponse @ core.entry.js:1
(anonymous) @ core.entry.js:1
await in (anonymous) (async)
(anonymous) @ core.entry.js:1
b @ fileUpload.chunk.1.js:11
_importBlock @ fileUpload.chunk.1.js:11
await in _importBlock (async)
import @ fileUpload.chunk.1.js:11
await in import (async)
(anonymous) @ fileUpload.chunk.1.js:11
await in (anonymous) (async)
componentDidUpdate @ fileUpload.chunk.1.js:11
ps @ kbn-ui-shared-deps-npm.dll.js:465
xu @ kbn-ui-shared-deps-npm.dll.js:465
t.unstable_runWithPriority @ kbn-ui-shared-deps-npm.dll.js:473
Gi @ kbn-ui-shared-deps-npm.dll.js:465
Mu @ kbn-ui-shared-deps-npm.dll.js:465
du @ kbn-ui-shared-deps-npm.dll.js:465
(anonymous) @ kbn-ui-shared-deps-npm.dll.js:465
t.unstable_runWithPriority @ kbn-ui-shared-deps-npm.dll.js:473
Gi @ kbn-ui-shared-deps-npm.dll.js:465
Xi @ kbn-ui-shared-deps-npm.dll.js:465
Vi @ kbn-ui-shared-deps-npm.dll.js:465
N @ kbn-ui-shared-deps-npm.dll.js:465
Xt @ kbn-ui-shared-deps-npm.dll.js:465
kbn-ui-shared-deps-npm.dll.js:465 TypeError: Cannot read properties of undefined (reading 'reason')
    at import_complete_view_ImportCompleteView._getStatusMsg (fileUpload.chunk.1.js:11:500104)
    at import_complete_view_ImportCompleteView.render (fileUpload.chunk.1.js:11:501638)
    at qa (kbn-ui-shared-deps-npm.dll.js:465:70363)
    at Ga (kbn-ui-shared-deps-npm.dll.js:465:70141)
    at xs (kbn-ui-shared-deps-npm.dll.js:465:108531)
    at Ou (kbn-ui-shared-deps-npm.dll.js:465:97978)
    at _u (kbn-ui-shared-deps-npm.dll.js:465:97790)
    at du (kbn-ui-shared-deps-npm.dll.js:465:94652)
    at kbn-ui-shared-deps-npm.dll.js:465:45570
    at t.unstable_runWithPriority (kbn-ui-shared-deps-npm.dll.js:473:3844)
us @ kbn-ui-shared-deps-npm.dll.js:465
Es.n.callback @ kbn-ui-shared-deps-npm.dll.js:465
go @ kbn-ui-shared-deps-npm.dll.js:465
ps @ kbn-ui-shared-deps-npm.dll.js:465
xu @ kbn-ui-shared-deps-npm.dll.js:465
t.unstable_runWithPriority @ kbn-ui-shared-deps-npm.dll.js:473
Gi @ kbn-ui-shared-deps-npm.dll.js:465
Mu @ kbn-ui-shared-deps-npm.dll.js:465
du @ kbn-ui-shared-deps-npm.dll.js:465
(anonymous) @ kbn-ui-shared-deps-npm.dll.js:465
t.unstable_runWithPriority @ kbn-ui-shared-deps-npm.dll.js:473
Gi @ kbn-ui-shared-deps-npm.dll.js:465
Xi @ kbn-ui-shared-deps-npm.dll.js:465
Vi @ kbn-ui-shared-deps-npm.dll.js:465
au @ kbn-ui-shared-deps-npm.dll.js:465
enqueueSetState @ kbn-ui-shared-deps-npm.dll.js:465
_.setState @ kbn-ui-shared-deps-npm.dll.js:449
(anonymous) @ fileUpload.chunk.1.js:11
await in (anonymous) (async)
componentDidUpdate @ fileUpload.chunk.1.js:11
ps @ kbn-ui-shared-deps-npm.dll.js:465
xu @ kbn-ui-shared-deps-npm.dll.js:465
t.unstable_runWithPriority @ kbn-ui-shared-deps-npm.dll.js:473
Gi @ kbn-ui-shared-deps-npm.dll.js:465
Mu @ kbn-ui-shared-deps-npm.dll.js:465
du @ kbn-ui-shared-deps-npm.dll.js:465
(anonymous) @ kbn-ui-shared-deps-npm.dll.js:465
t.unstable_runWithPriority @ kbn-ui-shared-deps-npm.dll.js:473
Gi @ kbn-ui-shared-deps-npm.dll.js:465
Xi @ kbn-ui-shared-deps-npm.dll.js:465
Vi @ kbn-ui-shared-deps-npm.dll.js:465
N @ kbn-ui-shared-deps-npm.dll.js:465
Xt @ kbn-ui-shared-deps-npm.dll.js:465
core.entry.js:1 Detected an unhandled Promise rejection.

TypeError: Cannot read properties of undefined (reading 'reason')
fileUpload.chunk.1.js:11 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'reason')
    at import_complete_view_ImportCompleteView._getStatusMsg (fileUpload.chunk.1.js:11:500104)
    at import_complete_view_ImportCompleteView.render (fileUpload.chunk.1.js:11:501638)
    at qa (kbn-ui-shared-deps-npm.dll.js:465:70363)
    at Ga (kbn-ui-shared-deps-npm.dll.js:465:70141)
    at xs (kbn-ui-shared-deps-npm.dll.js:465:108531)
    at Ou (kbn-ui-shared-deps-npm.dll.js:465:97978)
    at _u (kbn-ui-shared-deps-npm.dll.js:465:97790)
    at du (kbn-ui-shared-deps-npm.dll.js:465:94652)
    at kbn-ui-shared-deps-npm.dll.js:465:45570
    at t.unstable_runWithPriority (kbn-ui-shared-deps-npm.dll.js:473:3844)

this is the output from elastic:

{"@timestamp":"2022-08-12T08:32:42.191Z", "log.level": "INFO", "message":"[finasdasd] creating index, cause [api], templates [], shards [1]/[1]", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[es01][masterService#updateTask][T#1]","log.logger":"org.elasticsearch.cluster.metadata.MetadataCreateIndexService","trace.id":"30fbd8e4b3bfaaba0896e2c21e05a8f1","elasticsearch.cluster.uuid":"nfnLdlf7RYSjxX80J_kcsg","elasticsearch.node.id":"RD4IN6-MQt6rkR4pm6_Pdg","elasticsearch.node.name":"es01","elasticsearch.cluster.name":"es-docker-cluster"}

Any help would be much appreciated - I'm trying to visualise something for a charity!

Not sure what's different but I tested your dataset (it's just 14 countries boundaries with their iso codes) and it imported fine. I used Kibana 8.3.3 on the Elastic Cloud.

Maybe you want to run your geojson file trough mapshaper to clean up any geometry issues. This command works well:

mapshaper -i fin.geojson -snap precision=0.000001 -clean -simplify percentage=99% -o fin_clean.geojson

(you can also use their website graphical interface for this)

Yes thanks i did that and it does work after simplifying (i just tried) but it would be good to solve this issue too

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.