{"action":"created","issue":{"url":"https://api.github.com/repos/Stanvk/Magister/issues/29","repository_url":"https://api.github.com/repos/Stanvk/Magister","labels_url":"https://api.github.com/repos/Stanvk/Magister/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/Stanvk/Magister/issues/29/comments","events_url":"https://api.github.com/repos/Stanvk/Magister/issues/29/events","html_url":"https://github.com/Stanvk/Magister/issues/29","id":154205626,"number":29,"title":"Magister agenda ophalen werkt niet meer?","user":{"login":"RepsaJN","id":12623185,"avatar_url":"https://avatars.githubusercontent.com/u/12623185?v=3","gravatar_id":"","url":"https://api.github.com/users/RepsaJN","html_url":"https://github.com/RepsaJN","followers_url":"https://api.github.com/users/RepsaJN/followers","following_url":"https://api.github.com/users/RepsaJN/following{/other_user}","gists_url":"https://api.github.com/users/RepsaJN/gists{/gist_id}","starred_url":"https://api.github.com/users/RepsaJN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RepsaJN/subscriptions","organizations_url":"https://api.github.com/users/RepsaJN/orgs","repos_url":"https://api.github.com/users/RepsaJN/repos","events_url":"https://api.github.com/users/RepsaJN/events{/privacy}","received_events_url":"https://api.github.com/users/RepsaJN/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-11T10:04:18Z","updated_at":"2016-05-14T15:49:24Z","closed_at":null,"body":"```\r\n2015-11-182015-12-10\r\n\r\nMagister agenda\r\n\r\nexception 'GuzzleHttp\\Exception\\ParseException' with message 'Unable to parse JSON data: JSON_ERROR_SYNTAX - Syntax error, malformed JSON' in /var/www/html/magister-agenda/vendor/guzzlehttp/guzzle/src/Message/Response.php:148 Stack trace: #0 /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Connection.php(83): GuzzleHttp\\Message\\Response->json() #1 /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Connection.php(147): Magister\\Services\\Database\\Connection->Magister\\Services\\Database\\{closure}(Object(Magister\\Services\\Database\\Connection), 'personen/:id/af...', Array) #2 /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Connection.php(123): Magister\\Services\\Database\\Connection->runQueryCallback('personen/:id/af...', Array, Object(Closure)) #3 /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Connection.php(84): Magister\\Services\\Database\\Connection->run('personen/:id/af...', Array, Object(Closure)) #4 /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Query/Builder.php(122): Magister\\Services\\Database\\Connection->select('personen/:id/af...', Array) #5 /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Query/Builder.php(112): Magister\\Services\\Database\\Query\\Builder->runSelect() #6 /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Elegant/Builder.php(106): Magister\\Services\\Database\\Query\\Builder->get() #7 /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Elegant/Builder.php(65): Magister\\Services\\Database\\Elegant\\Builder->getModels() #8 /var/www/html/magister-agenda/getMagister.php(31): Magister\\Services\\Database\\Elegant\\Builder->get() #9 /var/www/html/magister-agenda/test_oud.php(22): getMagisterData('xxx', 'xxx', 'xxx', Array) #10 {main} Next exception 'Magister\\Services\\Database\\QueryException' with message 'Unable to parse JSON data: JSON_ERROR_SYNTAX - Syntax error, malformed JSON (Query: personen/:id/afspraken, Array ( [van] => 2015-11-18 [tot] => 2015-12-10 ) )' in /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Connection.php:154 Stack trace: #0 /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Connection.php(123): Magister\\Services\\Database\\Connection->runQueryCallback('personen/:id/af...', Array, Object(Closure)) #1 /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Connection.php(84): Magister\\Services\\Database\\Connection->run('personen/:id/af...', Array, Object(Closure)) #2 /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Query/Builder.php(122): Magister\\Services\\Database\\Connection->select('personen/:id/af...', Array) #3 /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Query/Builder.php(112): Magister\\Services\\Database\\Query\\Builder->runSelect() #4 /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Elegant/Builder.php(106): Magister\\Services\\Database\\Query\\Builder->get() #5 /var/www/html/magister-agenda/vendor/stanvk/magister/src/Magister/Services/Database/Elegant/Builder.php(65): Magister\\Services\\Database\\Elegant\\Builder->getModels() #6 /var/www/html/magister-agenda/getMagister.php(31): Magister\\Services\\Database\\Elegant\\Builder->get() #7 /var/www/html/magister-agenda/test_oud.php(22): getMagisterData('xxx', 'xxx', 'xxx', Array) #8 {main}`\r\n```\r\n```\r\n\r\n        try {\r\n                $magister = new Magister($school, $username, $passwo$\r\n        }        \r\n        catch (Exception $e) {\r\n\r\n                echo '<br><br>';\r\n                echo 'Magister inlog';\r\n                echo '<br><br>';\r\n                echo $e;\r\n                echo '<br><br>';\r\n        }\r\n\r\n        try {\r\n        $appointments = Appointment::where('van', $begin)->where('to$\r\n                echo $appointments;\r\n                $result = json_decode($appointments, true);\r\n        } catch (Exception $e) {\r\n                echo '<br><br>';\r\n                echo 'Magister agenda';\r\n                echo '<br><br>';\r\n                echo $e;\r\n                echo '<br><br>';\r\n                return $e;\r\n        }\r\n\r\n```\r\n\r\n\r\nVorige week werkte onze implentatie van onze huiswerk ophaal module nog naar behoren. Maar er lijkt iets te zijn veranderd, wij krijgen deze error. Zoals je ziet, lukt het inloggen wel, maar de magister agenda zelf niet. \r\n\r\n```\r\n\r\nphp --version\r\nPHP 5.6.17-0+deb8u1 (cli) (built: Jan 15 2016 15:55:17) \r\n\r\n```\r\n\r\n```\r\ncat composer.json \r\n{\r\n    \"require\": {\r\n        \"stanvk/magister\": \"~2.0\"\r\n    }\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Stanvk/Magister/issues/comments/219227375","html_url":"https://github.com/Stanvk/Magister/issues/29#issuecomment-219227375","issue_url":"https://api.github.com/repos/Stanvk/Magister/issues/29","id":219227375,"user":{"login":"elisaado","id":14182500,"avatar_url":"https://avatars.githubusercontent.com/u/14182500?v=3","gravatar_id":"","url":"https://api.github.com/users/elisaado","html_url":"https://github.com/elisaado","followers_url":"https://api.github.com/users/elisaado/followers","following_url":"https://api.github.com/users/elisaado/following{/other_user}","gists_url":"https://api.github.com/users/elisaado/gists{/gist_id}","starred_url":"https://api.github.com/users/elisaado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elisaado/subscriptions","organizations_url":"https://api.github.com/users/elisaado/orgs","repos_url":"https://api.github.com/users/elisaado/repos","events_url":"https://api.github.com/users/elisaado/events{/privacy}","received_events_url":"https://api.github.com/users/elisaado/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T15:49:23Z","updated_at":"2016-05-14T15:49:23Z","body":"Woooow rustig... Ik (en waarschijnlijk ook de topic starter) klaagden niet. Dit is de issue section. Dit is een issue. "}}