Skip to content

[Maps] Error seen in maps while uploading a geoJSON - Uncaught (in promise) TypeError: Invalid attempt to spread non-iterable instance #60710

@rashmivkulkarni

Description

@rashmivkulkarni

Kibana version: 7.6.2

Elasticsearch version: 7.6.2

Server OS version: Mac OSX

Browser version: Chrome latest

Browser OS version: NA

Original install method (e.g. download page, yum, from source, etc.): BC1 build of 7.6.2

Describe the bug: When uploading a geoJSON file in maps , encountered this error

commons.bundle.js:3 Uncaught (in promise) TypeError: Invalid attempt to spread non-iterable instance
    at _nonIterableSpread (commons.bundle.js:3)
    at _toConsumableArray (commons.bundle.js:3)
    at chunkDataAndWriteToIndex$ (commons.bundle.js:3)
    at s (kbn-ui-shared-deps.js:338)
    at Generator._invoke (kbn-ui-shared-deps.js:338)
    at Generator.forEach.e.<computed> [as next] (kbn-ui-shared-deps.js:338)
    at s (kbn-ui-shared-deps.js:338)
    at t (kbn-ui-shared-deps.js:338)
    at kbn-ui-shared-deps.js:338
_nonIterableSpread @ commons.bundle.js:3
_toConsumableArray @ commons.bundle.js:3
chunkDataAndWriteToIndex$ @ commons.bundle.js:3
s @ kbn-ui-shared-deps.js:338
(anonymous) @ kbn-ui-shared-deps.js:338
forEach.e.<computed> @ kbn-ui-shared-deps.js:338
s @ kbn-ui-shared-deps.js:338
t @ kbn-ui-shared-deps.js:338
(anonymous) @ kbn-ui-shared-deps.js:338

Steps to reproduce:

  1. Deployed BC1 of 7.6.2 on cloud.
  2. Navigated to Dashboard>create new dashboard> maps> upload geoJSON attached.
  3. It took long time to upload ( unsuccessful) but gave an error in the console :
    as shown in screenshot.

Screen Shot 2020-03-19 at 4 20 39 PM

This could be for various reasons, first being it is on cloud with default settings while spinning an instance

THIS DEPLOYMENT INCLUDES
2 × 1 GB RAM instances of aws.coordinating.m5
Optional
2 × 8 GB RAM / 240 GB storage instances of aws.data.highio.i3
3 × 1 GB RAM instances of aws.master.r4
Optional
1 × 1 GB RAM instance of aws.ml.m5
Optional
1 × 1 GB RAM instance of aws.kibana.r4
1 × 512 MB RAM instance of aws.apm.r4

or the big JSON file. ( renamed the JSON to txt file for gh to upload it)

burnsidetrees.geojson.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:File UploadTeam:GeoFormer Team Label for Geo Team. Now use Team:PresentationbugFixes for quality problems that affect the customer experience

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions