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

Issue executing clone-space.js #31

Closed
temelj opened this issue Sep 22, 2015 · 8 comments
Closed

Issue executing clone-space.js #31

temelj opened this issue Sep 22, 2015 · 8 comments

Comments

@temelj
Copy link

temelj commented Sep 22, 2015

I am getting an error when trying to clone spaces.

c:\GitHub\contentful-management.js>node example\clone-space --access-token $SOURCE_TOKEN --source-space-id $SOURCE_ID --destination-access-token $DEST_TOKEN --destination-pace-id $DEST_ID --only-content-types
c:\GitHub\contentful-management.js\example\clone-space.js:77
      .spread(clone)
       ^
TypeError: undefined is not a function
    at Object.<anonymous> (c:\GitHub\contentful-management.js\example\clone-space.js:77:8)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

NOTE: I have removed the tokens & space ids.

C:\GitHub\contentful-management.js>npm version
{ 'contentful-management': '0.1.1',
  npm: '2.11.3',
  http_parser: '2.3',
  modules: '14',
  node: '0.12.7',
  openssl: '1.0.1p',
  uv: '1.6.1',
  v8: '3.28.71.19',
  zlib: '1.2.8' }
@trodrigues
Copy link
Contributor

Right, we moved away from bluebird but this wasn't properly changed. Thanks for the report.

@temelj
Copy link
Author

temelj commented Sep 22, 2015

Is the code on line 70 to 77 in clone-space.js related to bluebird?

@raucao
Copy link

raucao commented Oct 27, 2015

Same here. Could you please fix it? Would be much quicker for someone who knows exactly what changed.

@vbohush
Copy link

vbohush commented Nov 2, 2015

Same issue

@temelj
Copy link
Author

temelj commented Nov 2, 2015

We have a workaround for the issue and it works but i wouldn't rely on it 100%. See my profile it should show up under perduco\contentful-management-fix

@trodrigues
Copy link
Contributor

Hi there,

we have published a new separate tool for space cloning and synchronization at https://github.com/contentful-labs/contentful-space-sync

We still need to add some options like "only content types" and host, so it can be used with preview.contentful.com, but other than that it is a more complete and reliable tool, so we are going to discontinue this script.

@vbohush
Copy link

vbohush commented Nov 2, 2015

Thanks, I already used contentful-management.js version 0.1.1 It works for me.

@raucao
Copy link

raucao commented Nov 2, 2015

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants