Skip to content

RangeError: Maximum call stack size exceeded #1

@idealley

Description

@idealley

I tried running the following query node cloudcms-export -y ./data-queries/items.json --folder-path ./data

items.json

{
    "_type": "ers:article"
}

But got the following error:

RangeError: Maximum call stack size exceeded
    at Function._.each._.forEach (/Users/samuel/Projects/cloudcms-import-export/node_modules/underscore/underscore.js:153:9)
    at Function._.filter._.select (/Users/samuel/Projects/cloudcms-import-export/node_modules/underscore/underscore.js:226:7)
    at downloadNodeAttachments (/Users/samuel/Projects/cloudcms-import-export/cloudcms-export.js:236:24)
    at /Users/samuel/Projects/cloudcms-import-export/node_modules/async/dist/async.js:66:19
    at /Users/samuel/Projects/cloudcms-import-export/node_modules/async/dist/async.js:3096:16
    at replenish (/Users/samuel/Projects/cloudcms-import-export/node_modules/async/dist/async.js:998:17)
    at iterateeCallback (/Users/samuel/Projects/cloudcms-import-export/node_modules/async/dist/async.js:983:17)
    at /Users/samuel/Projects/cloudcms-import-export/node_modules/async/dist/async.js:958:16
    at /Users/samuel/Projects/cloudcms-import-export/cloudcms-export.js:245:9
    at /Users/samuel/Projects/cloudcms-import-export/node_modules/async/dist/async.js:473:16

If you want you can try it against our repository

gitana.json

{
    "clientKey": "48524ab1-de69-43e9-86d5-d0968c99b54b",
    "clientSecret": "QTyuEImvdJirk57RZuY7T2LkOo6YXCt8nYh9OrQmQijYmi5h3SGAaEQBqDbFbrF3lzAPeZk/eQ9NFTyJjWLpw3g1hjQZHuDgBEKw5WayFEU=",
    "username": "00c2133e-1284-4882-855f-818a1e2eaae4",
    "password": "eI3UuDlsvWq6ok6/w3q6lDjDrsTt+j81wTznoNSOLM0ddjl/qKEzFzLs7FhOCml+kBcEhJW/shfJZEDLkqLZEwsug5q0t1V8lXhGh8A1WYs=",
    "baseURL": "https://api.cloudcms.com",
    "application": "f443c22b5b9a08f608d9"
}

we have around 750 articles therefore it might be too much. When I do this kind of operation (indexing in our ES instance for example) I do it in batches of 100 and it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions