{"action":"created","issue":{"url":"https://api.github.com/repos/lesander/magister-calendar/issues/36","repository_url":"https://api.github.com/repos/lesander/magister-calendar","labels_url":"https://api.github.com/repos/lesander/magister-calendar/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/lesander/magister-calendar/issues/36/comments","events_url":"https://api.github.com/repos/lesander/magister-calendar/issues/36/events","html_url":"https://github.com/lesander/magister-calendar/issues/36","id":303629142,"number":36,"title":"error on firstrun.js ","user":{"login":"jb2210","id":25897516,"avatar_url":"https://avatars1.githubusercontent.com/u/25897516?v=4","gravatar_id":"","url":"https://api.github.com/users/jb2210","html_url":"https://github.com/jb2210","followers_url":"https://api.github.com/users/jb2210/followers","following_url":"https://api.github.com/users/jb2210/following{/other_user}","gists_url":"https://api.github.com/users/jb2210/gists{/gist_id}","starred_url":"https://api.github.com/users/jb2210/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jb2210/subscriptions","organizations_url":"https://api.github.com/users/jb2210/orgs","repos_url":"https://api.github.com/users/jb2210/repos","events_url":"https://api.github.com/users/jb2210/events{/privacy}","received_events_url":"https://api.github.com/users/jb2210/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-08T20:58:07Z","updated_at":"2018-03-08T22:24:53Z","closed_at":null,"author_association":"NONE","body":"when running the firstrun.js file with the client_secret.json file in the correct file directory I get this error:\r\n```\r\nTesting calendar authorization.\r\nThe API returned an error: Error: unauthorized_client\r\n```\r\nI redid the authorization for the webapp on the google devolerpsconsole multiple times. Tried changing names and authorized redirecting-url but all returns the same error. Also tried without the authorized redirecting-url but the error then returned is:\r\n```\r\n/etc/magister-calendar/firstrun.js:63\r\n  var redirectUrl = credentials.web.redirect_uris[0];\r\n                                                 ^\r\n\r\nTypeError: Cannot read property '0' of undefined\r\n    at authorize (/etc/magister-calendar/firstrun.js:63:50)\r\n    at processClientSecrets (/etc/magister-calendar/firstrun.js:48:3)\r\n    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)\r\n```\r\nI currently am running the magister-calendar client on a Ubuntu 16.04 server, all required software is installed, I previously ran the magister-calender client but found it running into other errors (before that it did really well, thx for that though) so decided to do a reinstall. Didn't seem to quite help after all...\r\n\r\nI cannot provide the previous errors since I deleted the entire magister-calendar folder before doing a reinstall. also I couldn't find any documents in the cache folder, also after engaging debugging mode.\r\n\r\nlooking forward to a response.\r\n\r\ncontents of my config.json\r\n\r\n```\r\n{\r\n  \"debug\": true,\r\n  \"calendar\": \"primary\",\r\n  \"period\": \"default\",\r\n  \"day_is_over_time\": 16,\r\n  \"magister_url\": \"*************.magister.net\",\r\n  \"magister_username\": \"***********\",\r\n  \"magister_password\": \"***********\",\r\n  \"pushover\": {\r\n    \"enabled\": false,\r\n    \"token\": \"\",\r\n    \"user\": \"\",\r\n    \"device\": \"\"\r\n  },\r\n  \"remove_cancelled_classes\": true,\r\n  \"blacklist\": [\"beweginsonderwijs\", \"KWT\"],\r\n  \"reminders\": [\r\n    { \"method\": \"popup\", \"minutes\": \"5\" }\r\n  ]\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/lesander/magister-calendar/issues/comments/371645676","html_url":"https://github.com/lesander/magister-calendar/issues/36#issuecomment-371645676","issue_url":"https://api.github.com/repos/lesander/magister-calendar/issues/36","id":371645676,"user":{"login":"jb2210","id":25897516,"avatar_url":"https://avatars1.githubusercontent.com/u/25897516?v=4","gravatar_id":"","url":"https://api.github.com/users/jb2210","html_url":"https://github.com/jb2210","followers_url":"https://api.github.com/users/jb2210/followers","following_url":"https://api.github.com/users/jb2210/following{/other_user}","gists_url":"https://api.github.com/users/jb2210/gists{/gist_id}","starred_url":"https://api.github.com/users/jb2210/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jb2210/subscriptions","organizations_url":"https://api.github.com/users/jb2210/orgs","repos_url":"https://api.github.com/users/jb2210/repos","events_url":"https://api.github.com/users/jb2210/events{/privacy}","received_events_url":"https://api.github.com/users/jb2210/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T22:24:53Z","updated_at":"2018-03-08T22:24:53Z","author_association":"NONE","body":"My server is a, throught http and https, over the internet reachable server, not sure if that makes any difference?"}}
{"actor":{"display_login":"jb2210"}}