{"action":"created","issue":{"url":"https://api.github.com/repos/processing/p5.js-web-editor/issues/189","repository_url":"https://api.github.com/repos/processing/p5.js-web-editor","labels_url":"https://api.github.com/repos/processing/p5.js-web-editor/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/processing/p5.js-web-editor/issues/189/comments","events_url":"https://api.github.com/repos/processing/p5.js-web-editor/issues/189/events","html_url":"https://github.com/processing/p5.js-web-editor/issues/189","id":187392490,"number":189,"title":"Loading local JSON file in the full view","user":{"login":"yining1023","id":8662372,"avatar_url":"https://avatars.githubusercontent.com/u/8662372?v=3","gravatar_id":"","url":"https://api.github.com/users/yining1023","html_url":"https://github.com/yining1023","followers_url":"https://api.github.com/users/yining1023/followers","following_url":"https://api.github.com/users/yining1023/following{/other_user}","gists_url":"https://api.github.com/users/yining1023/gists{/gist_id}","starred_url":"https://api.github.com/users/yining1023/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yining1023/subscriptions","organizations_url":"https://api.github.com/users/yining1023/orgs","repos_url":"https://api.github.com/users/yining1023/repos","events_url":"https://api.github.com/users/yining1023/events{/privacy}","received_events_url":"https://api.github.com/users/yining1023/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"catarak","id":6063380,"avatar_url":"https://avatars.githubusercontent.com/u/6063380?v=3","gravatar_id":"","url":"https://api.github.com/users/catarak","html_url":"https://github.com/catarak","followers_url":"https://api.github.com/users/catarak/followers","following_url":"https://api.github.com/users/catarak/following{/other_user}","gists_url":"https://api.github.com/users/catarak/gists{/gist_id}","starred_url":"https://api.github.com/users/catarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catarak/subscriptions","organizations_url":"https://api.github.com/users/catarak/orgs","repos_url":"https://api.github.com/users/catarak/repos","events_url":"https://api.github.com/users/catarak/events{/privacy}","received_events_url":"https://api.github.com/users/catarak/received_events","type":"User","site_admin":false},"assignees":[{"login":"catarak","id":6063380,"avatar_url":"https://avatars.githubusercontent.com/u/6063380?v=3","gravatar_id":"","url":"https://api.github.com/users/catarak","html_url":"https://github.com/catarak","followers_url":"https://api.github.com/users/catarak/followers","following_url":"https://api.github.com/users/catarak/following{/other_user}","gists_url":"https://api.github.com/users/catarak/gists{/gist_id}","starred_url":"https://api.github.com/users/catarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catarak/subscriptions","organizations_url":"https://api.github.com/users/catarak/orgs","repos_url":"https://api.github.com/users/catarak/repos","events_url":"https://api.github.com/users/catarak/events{/privacy}","received_events_url":"https://api.github.com/users/catarak/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-11-04T17:26:12Z","updated_at":"2016-11-04T21:41:17Z","closed_at":null,"body":"I have this test sketch: [http://alpha.editor.p5js.org/projects/Hk5W7ptel](http://alpha.editor.p5js.org/projects/Hk5W7ptel). It can load JSON file in the edit view. \r\n\r\nWhen I switch to the full view: [http://alpha.editor.p5js.org/full/Hk5W7ptel](http://alpha.editor.p5js.org/full/Hk5W7ptel ), I got 502 (Bad Gateway) error.\r\n<img width=\"500\" alt=\"screen shot 2016-11-04 at 1 22 01 pm\" src=\"https://cloud.githubusercontent.com/assets/8662372/20015519/2a54bd9c-a292-11e6-8d36-021b2a09cf64.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/processing/p5.js-web-editor/issues/comments/258554728","html_url":"https://github.com/processing/p5.js-web-editor/issues/189#issuecomment-258554728","issue_url":"https://api.github.com/repos/processing/p5.js-web-editor/issues/189","id":258554728,"user":{"login":"catarak","id":6063380,"avatar_url":"https://avatars.githubusercontent.com/u/6063380?v=3","gravatar_id":"","url":"https://api.github.com/users/catarak","html_url":"https://github.com/catarak","followers_url":"https://api.github.com/users/catarak/followers","following_url":"https://api.github.com/users/catarak/following{/other_user}","gists_url":"https://api.github.com/users/catarak/gists{/gist_id}","starred_url":"https://api.github.com/users/catarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catarak/subscriptions","organizations_url":"https://api.github.com/users/catarak/orgs","repos_url":"https://api.github.com/users/catarak/repos","events_url":"https://api.github.com/users/catarak/events{/privacy}","received_events_url":"https://api.github.com/users/catarak/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T21:41:17Z","updated_at":"2016-11-04T21:41:17Z","body":"Since the full/embed link is being rendered server side, I can't user blob urls to load json/txt/csv files. I think the solution to this is to make new api routes that return these files, something like:\r\n`/api/sketches/<sketch_id>/<path_to_file>`"}}
{"actor":{"display_login":"catarak"}}