Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError: Maximum call stack size exceeded #1

Open
idealley opened this issue Jun 15, 2018 · 1 comment
Open

RangeError: Maximum call stack size exceeded #1

idealley opened this issue Jun 15, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@idealley
Copy link
Collaborator

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.

@idealley idealley added the bug Something isn't working label Jun 15, 2018
@harrymoore
Copy link
Owner

Sorry for the delay. I've done some testing and larger data sets do work but not in your case for some reason. I will add paging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants