{"action":"created","issue":{"url":"https://api.github.com/repos/the-grid/ed/issues/50","repository_url":"https://api.github.com/repos/the-grid/ed","labels_url":"https://api.github.com/repos/the-grid/ed/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/the-grid/ed/issues/50/comments","events_url":"https://api.github.com/repos/the-grid/ed/issues/50/events","html_url":"https://github.com/the-grid/ed/issues/50","id":131591156,"number":50,"title":"setContent with article throws error","user":{"login":"hannesstruss","id":115381,"avatar_url":"https://avatars.githubusercontent.com/u/115381?v=3","gravatar_id":"","url":"https://api.github.com/users/hannesstruss","html_url":"https://github.com/hannesstruss","followers_url":"https://api.github.com/users/hannesstruss/followers","following_url":"https://api.github.com/users/hannesstruss/following{/other_user}","gists_url":"https://api.github.com/users/hannesstruss/gists{/gist_id}","starred_url":"https://api.github.com/users/hannesstruss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannesstruss/subscriptions","organizations_url":"https://api.github.com/users/hannesstruss/orgs","repos_url":"https://api.github.com/users/hannesstruss/repos","events_url":"https://api.github.com/users/hannesstruss/events{/privacy}","received_events_url":"https://api.github.com/users/hannesstruss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-02-05T09:08:10Z","updated_at":"2016-02-13T04:40:50Z","closed_at":null,"body":"Using ed 0.0.35 and this flow:\r\n\r\n1. Hit enter to create new block\r\n2. Paste URL, hit enter\r\n3. App gets url share event, creates placeholder block, does `setContent` (placeholder is displayed correctly)\r\n4. App does `PUT /item/<id>` to save placeholder block to API\r\n5. App does `POST /share` into the placeholder block\r\n6. As soon as job-completed GCM comes in, app reloads item and does `setContent`\r\n\r\nThis is the item (I do `ed.setContent(item.content)`): https://gist.github.com/hannesstruss/819ab983c52cca26251c\r\n\r\nThis is the error (the index in `Failed to resolve path %d` is the index of the block about to be replaced +1, when counting 0-based):\r\n![developer_tools_-_file____android_asset_posteditor_editor_html](https://cloud.githubusercontent.com/assets/115381/12841990/1bb6e5f4-cbf0-11e5-9014-7cc0f30d69cf.png)\r\n\r\nNot sure how related they are and can't reproduce, but I also encountered these errors (might have happened during just editing):\r\n![developer_tools_-_file____android_asset_posteditor_editor_html](https://cloud.githubusercontent.com/assets/115381/12842006/2c7e9e90-cbf0-11e5-8182-10e7329e563f.png)\r\n\r\n![developer_tools_-_file____android_asset_posteditor_editor_html](https://cloud.githubusercontent.com/assets/115381/12842094/c0ad4828-cbf0-11e5-932c-4e81016b3128.png)\r\n\r\n\r\n(Sorry for screenshots, but I can't seem to copy/paste stacktraces from Chrome devtools)"},"comment":{"url":"https://api.github.com/repos/the-grid/ed/issues/comments/183588304","html_url":"https://github.com/the-grid/ed/issues/50#issuecomment-183588304","issue_url":"https://api.github.com/repos/the-grid/ed/issues/50","id":183588304,"user":{"login":"forresto","id":395307,"avatar_url":"https://avatars.githubusercontent.com/u/395307?v=3","gravatar_id":"","url":"https://api.github.com/users/forresto","html_url":"https://github.com/forresto","followers_url":"https://api.github.com/users/forresto/followers","following_url":"https://api.github.com/users/forresto/following{/other_user}","gists_url":"https://api.github.com/users/forresto/gists{/gist_id}","starred_url":"https://api.github.com/users/forresto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forresto/subscriptions","organizations_url":"https://api.github.com/users/forresto/orgs","repos_url":"https://api.github.com/users/forresto/repos","events_url":"https://api.github.com/users/forresto/events{/privacy}","received_events_url":"https://api.github.com/users/forresto/received_events","type":"User","site_admin":false},"created_at":"2016-02-13T04:40:50Z","updated_at":"2016-02-13T04:40:50Z","body":"0.0.40 rolling out, should hopefully fix it."}}