{"action":"created","issue":{"url":"https://api.github.com/repos/Adobe-Marketing-Cloud/aem-guides-wknd-events/issues/49","repository_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/aem-guides-wknd-events","labels_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/aem-guides-wknd-events/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/aem-guides-wknd-events/issues/49/comments","events_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/aem-guides-wknd-events/issues/49/events","html_url":"https://github.com/Adobe-Marketing-Cloud/aem-guides-wknd-events/issues/49","id":418057142,"node_id":"MDU6SXNzdWU0MTgwNTcxNDI=","number":49,"title":"[React] Unexpected error when...?","user":{"login":"klapeyre","id":16771580,"node_id":"MDQ6VXNlcjE2NzcxNTgw","avatar_url":"https://avatars0.githubusercontent.com/u/16771580?v=4","gravatar_id":"","url":"https://api.github.com/users/klapeyre","html_url":"https://github.com/klapeyre","followers_url":"https://api.github.com/users/klapeyre/followers","following_url":"https://api.github.com/users/klapeyre/following{/other_user}","gists_url":"https://api.github.com/users/klapeyre/gists{/gist_id}","starred_url":"https://api.github.com/users/klapeyre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klapeyre/subscriptions","organizations_url":"https://api.github.com/users/klapeyre/orgs","repos_url":"https://api.github.com/users/klapeyre/repos","events_url":"https://api.github.com/users/klapeyre/events{/privacy}","received_events_url":"https://api.github.com/users/klapeyre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"godanny86","id":8974514,"node_id":"MDQ6VXNlcjg5NzQ1MTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/8974514?v=4","gravatar_id":"","url":"https://api.github.com/users/godanny86","html_url":"https://github.com/godanny86","followers_url":"https://api.github.com/users/godanny86/followers","following_url":"https://api.github.com/users/godanny86/following{/other_user}","gists_url":"https://api.github.com/users/godanny86/gists{/gist_id}","starred_url":"https://api.github.com/users/godanny86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godanny86/subscriptions","organizations_url":"https://api.github.com/users/godanny86/orgs","repos_url":"https://api.github.com/users/godanny86/repos","events_url":"https://api.github.com/users/godanny86/events{/privacy}","received_events_url":"https://api.github.com/users/godanny86/received_events","type":"User","site_admin":false},"assignees":[{"login":"godanny86","id":8974514,"node_id":"MDQ6VXNlcjg5NzQ1MTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/8974514?v=4","gravatar_id":"","url":"https://api.github.com/users/godanny86","html_url":"https://github.com/godanny86","followers_url":"https://api.github.com/users/godanny86/followers","following_url":"https://api.github.com/users/godanny86/following{/other_user}","gists_url":"https://api.github.com/users/godanny86/gists{/gist_id}","starred_url":"https://api.github.com/users/godanny86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/godanny86/subscriptions","organizations_url":"https://api.github.com/users/godanny86/orgs","repos_url":"https://api.github.com/users/godanny86/repos","events_url":"https://api.github.com/users/godanny86/events{/privacy}","received_events_url":"https://api.github.com/users/godanny86/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2019-03-06T23:28:07Z","updated_at":"2019-03-07T00:27:10Z","closed_at":null,"author_association":"NONE","body":"**Local Environment**\r\nBefore filing an issue, verify that the prerequisite tools/software are installed:\r\n\r\n* AEM 6.4 + SP2 (check, running 6.4.2.0)\r\n* Java 1.8 (check, running 1.8.0_181)\r\n* Apache Maven (3.3.9 or newer) (check, running 3.5.4)\r\n* Node.js v10+ (check, running 11.10.0)\r\n* npm 6+ (check, running 6.7.0)\r\n\r\n**Describe the issue**\r\nDuring Chapter 2, Proxy JSON approach\r\n\r\nRunning npm start works, browser page opens at localhost:3000, but no page is seen.\r\nI see an error in the console \"Unexpected token < in JSON at position 0.\r\n\r\nOccurring line 572 in cq-spa-page-model-manager.js. The response is not being parsed correctly.\r\n\r\nI am able to setup a mock model.json as described in the next section, but obviously would prefer to work with a proxy. I have the proxy setup in package.json, and the .env.development pointing to the correct url \"/content/wknd-events/react.model.json\"\r\n\r\nUnsure what is causing the issue. I tried downgrading to the last version of cq-spa-page-model-manager since an update was just released, and I also tried matching node environments to that of the tutorial - no luck.\r\n\r\nAny advice would be appreciated.\r\n"},"comment":{"url":"https://api.github.com/repos/Adobe-Marketing-Cloud/aem-guides-wknd-events/issues/comments/470332308","html_url":"https://github.com/Adobe-Marketing-Cloud/aem-guides-wknd-events/issues/49#issuecomment-470332308","issue_url":"https://api.github.com/repos/Adobe-Marketing-Cloud/aem-guides-wknd-events/issues/49","id":470332308,"node_id":"MDEyOklzc3VlQ29tbWVudDQ3MDMzMjMwOA==","user":{"login":"klapeyre","id":16771580,"node_id":"MDQ6VXNlcjE2NzcxNTgw","avatar_url":"https://avatars0.githubusercontent.com/u/16771580?v=4","gravatar_id":"","url":"https://api.github.com/users/klapeyre","html_url":"https://github.com/klapeyre","followers_url":"https://api.github.com/users/klapeyre/followers","following_url":"https://api.github.com/users/klapeyre/following{/other_user}","gists_url":"https://api.github.com/users/klapeyre/gists{/gist_id}","starred_url":"https://api.github.com/users/klapeyre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klapeyre/subscriptions","organizations_url":"https://api.github.com/users/klapeyre/orgs","repos_url":"https://api.github.com/users/klapeyre/repos","events_url":"https://api.github.com/users/klapeyre/events{/privacy}","received_events_url":"https://api.github.com/users/klapeyre/received_events","type":"User","site_admin":false},"created_at":"2019-03-07T00:27:10Z","updated_at":"2019-03-07T00:27:10Z","author_association":"NONE","body":"Found the issue - I misinterpreted the section about adding the proxy to the package.json file and added **inside** the scripts section rather than beneath it. \r\n\r\nClosing this issue. Thanks for your help troubleshooting."}}
{"actor":{"display_login":"klapeyre"}}