{"action":"created","issue":{"url":"https://api.github.com/repos/grundic/confluence-page-copier/issues/1","repository_url":"https://api.github.com/repos/grundic/confluence-page-copier","labels_url":"https://api.github.com/repos/grundic/confluence-page-copier/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/grundic/confluence-page-copier/issues/1/comments","events_url":"https://api.github.com/repos/grundic/confluence-page-copier/issues/1/events","html_url":"https://github.com/grundic/confluence-page-copier/issues/1","id":140917395,"number":1,"title":"Problem when trying to copy more advanced tree structures","user":{"login":"FHSpam","id":16189253,"avatar_url":"https://avatars.githubusercontent.com/u/16189253?v=3","gravatar_id":"","url":"https://api.github.com/users/FHSpam","html_url":"https://github.com/FHSpam","followers_url":"https://api.github.com/users/FHSpam/followers","following_url":"https://api.github.com/users/FHSpam/following{/other_user}","gists_url":"https://api.github.com/users/FHSpam/gists{/gist_id}","starred_url":"https://api.github.com/users/FHSpam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FHSpam/subscriptions","organizations_url":"https://api.github.com/users/FHSpam/orgs","repos_url":"https://api.github.com/users/FHSpam/repos","events_url":"https://api.github.com/users/FHSpam/events{/privacy}","received_events_url":"https://api.github.com/users/FHSpam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-15T09:19:32Z","updated_at":"2016-05-18T13:56:34Z","closed_at":null,"body":"Hi,\r\nReally appreciate you sharing that piece of code.\r\nI have been playing around with it trying to copy some page trees on my Confluence. I have successfully made it work on small trees with a simple structure. (even cross-space).\r\nHowever, when trying to copy more 'advanced' structures (with possibly a few dozen pages, and/or pages containing attachements etc.) I run into errors:\r\nE.g.\r\n\r\n```\r\n$ python copier.py --username=\"*\" --password=\"*\" --endpoint=\"https://*.atlassian.net/wiki\" --src-space=\"DTS\" --src-title=\"Releases Documentation\" --dst-space=\"FT\" --dst-title-template=\"{title} (Copied using copier.py)\"\r\nDEBUG:confl-copier:Searching page by space 'DTS' and title 'Releases Documentation'\r\nDEBUG:confl-copier:Found 1 page(s)\r\nDEBUG:confl-copier:Setting ancestor id to 917507\r\nDEBUG:confl-copier:Searching page by space 'FT' and title 'Releases Documentation (Copied using copier.py)'\r\nDEBUG:confl-copier:Found 0 page(s)\r\nINFO:confl-copier:Copying 'DTS/Releases Documentation' => 'FT/Releases Documentation (Copied using copier.py)'\r\nTraceback (most recent call last):\r\n  File \"copier.py\", line 430, in <module>\r\n    recursion_limit=args.recursion_limit\r\n  File \"copier.py\", line 95, in copy\r\n    page_copy = self._copy_page(source, ancestor_id, dst_space_key, dst_title)\r\n  File \"copier.py\", line 272, in _copy_page\r\n    'ancestors': [{'id': ancestor_id}],\r\n  File \"/usr/lib/python2.7/site-packages/PythonConfluenceAPI/api.py\", line 794, in create_new_content\r\n    headers={\"Content-Type\": \"application/json\"}, callback=callback)\r\n  File \"/usr/lib/python2.7/site-packages/PythonConfluenceAPI/api.py\", line 140, in _service_post_request\r\n    return self._service_request(\"POST\", *args, **kwargs)\r\n  File \"/usr/lib/python2.7/site-packages/PythonConfluenceAPI/api.py\", line 116, in _service_request\r\n    response.raise_for_status()\r\n  File \"/usr/lib/python2.7/site-packages/requests/models.py\", line 840, in raise_for_status\r\n    raise HTTPError(http_error_msg, response=self)\r\nrequests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://dexstr.atlassian.net/wiki/rest/api/content\r\n```\r\n\r\n\r\nNot the most evocative of error messages...\r\nHave you ever run into this kind of problem or have you got an idea as to why or how to circumvent?\r\n\r\nThanks anyway,\r\nRegards\r\nFrancois"},"comment":{"url":"https://api.github.com/repos/grundic/confluence-page-copier/issues/comments/220033660","html_url":"https://github.com/grundic/confluence-page-copier/issues/1#issuecomment-220033660","issue_url":"https://api.github.com/repos/grundic/confluence-page-copier/issues/1","id":220033660,"user":{"login":"grundic","id":207278,"avatar_url":"https://avatars.githubusercontent.com/u/207278?v=3","gravatar_id":"","url":"https://api.github.com/users/grundic","html_url":"https://github.com/grundic","followers_url":"https://api.github.com/users/grundic/followers","following_url":"https://api.github.com/users/grundic/following{/other_user}","gists_url":"https://api.github.com/users/grundic/gists{/gist_id}","starred_url":"https://api.github.com/users/grundic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grundic/subscriptions","organizations_url":"https://api.github.com/users/grundic/orgs","repos_url":"https://api.github.com/users/grundic/repos","events_url":"https://api.github.com/users/grundic/events{/privacy}","received_events_url":"https://api.github.com/users/grundic/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T13:56:34Z","updated_at":"2016-05-18T13:56:34Z","body":"Hi, @FHSpam.\r\nThere were made some improvements in script, could you please try to reproduce the issue?"}}