{"action":"created","issue":{"url":"https://api.github.com/repos/contentful/contentful-management.js/issues/29","labels_url":"https://api.github.com/repos/contentful/contentful-management.js/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/contentful/contentful-management.js/issues/29/comments","events_url":"https://api.github.com/repos/contentful/contentful-management.js/issues/29/events","html_url":"https://github.com/contentful/contentful-management.js/pull/29","id":104246355,"number":29,"title":"[fixed] Strict mode error","user":{"login":"grncdr","id":82634,"avatar_url":"https://avatars.githubusercontent.com/u/82634?v=3","gravatar_id":"","url":"https://api.github.com/users/grncdr","html_url":"https://github.com/grncdr","followers_url":"https://api.github.com/users/grncdr/followers","following_url":"https://api.github.com/users/grncdr/following{/other_user}","gists_url":"https://api.github.com/users/grncdr/gists{/gist_id}","starred_url":"https://api.github.com/users/grncdr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grncdr/subscriptions","organizations_url":"https://api.github.com/users/grncdr/orgs","repos_url":"https://api.github.com/users/grncdr/repos","events_url":"https://api.github.com/users/grncdr/events{/privacy}","received_events_url":"https://api.github.com/users/grncdr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-01T11:37:27Z","updated_at":"2015-09-02T04:57:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/contentful/contentful-management.js/pulls/29","html_url":"https://github.com/contentful/contentful-management.js/pull/29","diff_url":"https://github.com/contentful/contentful-management.js/pull/29.diff","patch_url":"https://github.com/contentful/contentful-management.js/pull/29.patch"},"body":"Function declarations inside blocks is an error in strict mode. Certain versions of V8 actually notice this and throw an error.\r\n\r\n/cc @elblivion "},"comment":{"url":"https://api.github.com/repos/contentful/contentful-management.js/issues/comments/136936995","html_url":"https://github.com/contentful/contentful-management.js/pull/29#issuecomment-136936995","issue_url":"https://api.github.com/repos/contentful/contentful-management.js/issues/29","id":136936995,"user":{"login":"elblivion","id":2480211,"avatar_url":"https://avatars.githubusercontent.com/u/2480211?v=3","gravatar_id":"","url":"https://api.github.com/users/elblivion","html_url":"https://github.com/elblivion","followers_url":"https://api.github.com/users/elblivion/followers","following_url":"https://api.github.com/users/elblivion/following{/other_user}","gists_url":"https://api.github.com/users/elblivion/gists{/gist_id}","starred_url":"https://api.github.com/users/elblivion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elblivion/subscriptions","organizations_url":"https://api.github.com/users/elblivion/orgs","repos_url":"https://api.github.com/users/elblivion/repos","events_url":"https://api.github.com/users/elblivion/events{/privacy}","received_events_url":"https://api.github.com/users/elblivion/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T04:57:47Z","updated_at":"2015-09-02T04:57:47Z","body":"In any case it's the `getSpace` doesn't seem to be working, I added some debug and it doesn't throw an error for a nonexistent space:\r\n\r\n```\r\nconsole.log('Getting source Space %s from %s using access token %s', sourceSpaceId, host, accessToken);\r\nclient.getSpace(sourceSpaceId)\r\n      .catch(reportInvalidSpace);\r\n//      .then(getDestinationSpace)\r\n//      .tap(logSummary)\r\n//      .spread(clone)\r\n      //.done();\r\n```\r\n```\r\n$ bash wrapper\r\nGetting source Space obviouslyfake from api.contentful.com using access token <snip>\r\n$ echo $?\r\n0\r\n```"}}