{"action":"created","issue":{"url":"https://api.github.com/repos/J7mbo/twitter-api-php/issues/217","repository_url":"https://api.github.com/repos/J7mbo/twitter-api-php","labels_url":"https://api.github.com/repos/J7mbo/twitter-api-php/issues/217/labels{/name}","comments_url":"https://api.github.com/repos/J7mbo/twitter-api-php/issues/217/comments","events_url":"https://api.github.com/repos/J7mbo/twitter-api-php/issues/217/events","html_url":"https://github.com/J7mbo/twitter-api-php/issues/217","id":186413809,"number":217,"title":"Invalid returned JSON data - error on line 315","user":{"login":"Supertecnoboff","id":876897,"avatar_url":"https://avatars.githubusercontent.com/u/876897?v=3","gravatar_id":"","url":"https://api.github.com/users/Supertecnoboff","html_url":"https://github.com/Supertecnoboff","followers_url":"https://api.github.com/users/Supertecnoboff/followers","following_url":"https://api.github.com/users/Supertecnoboff/following{/other_user}","gists_url":"https://api.github.com/users/Supertecnoboff/gists{/gist_id}","starred_url":"https://api.github.com/users/Supertecnoboff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Supertecnoboff/subscriptions","organizations_url":"https://api.github.com/users/Supertecnoboff/orgs","repos_url":"https://api.github.com/users/Supertecnoboff/repos","events_url":"https://api.github.com/users/Supertecnoboff/events{/privacy}","received_events_url":"https://api.github.com/users/Supertecnoboff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-31T22:17:12Z","updated_at":"2016-11-07T13:22:32Z","closed_at":"2016-11-07T13:22:32Z","body":"Just wanted to let you know, the code on line 315 in the 'TwitterAPIExchange.php' document causes the output JSON object to be invalid. As a result JSON parsers (i.e.: an iPhone app), cannot parse the JSON object. For my personal project, I temporarily fixed this issue by commenting out the code which was giving the warning.\r\n\r\n```\r\nif (($error = curl_error($feed)) !== '')\r\n        {\r\n            curl_close($feed);\r\n            \r\n            /**\r\n            throw new \\Exception($error);\r\n            */\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/J7mbo/twitter-api-php/issues/comments/258833818","html_url":"https://github.com/J7mbo/twitter-api-php/issues/217#issuecomment-258833818","issue_url":"https://api.github.com/repos/J7mbo/twitter-api-php/issues/217","id":258833818,"user":{"login":"J7mbo","id":2657310,"avatar_url":"https://avatars.githubusercontent.com/u/2657310?v=3","gravatar_id":"","url":"https://api.github.com/users/J7mbo","html_url":"https://github.com/J7mbo","followers_url":"https://api.github.com/users/J7mbo/followers","following_url":"https://api.github.com/users/J7mbo/following{/other_user}","gists_url":"https://api.github.com/users/J7mbo/gists{/gist_id}","starred_url":"https://api.github.com/users/J7mbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/J7mbo/subscriptions","organizations_url":"https://api.github.com/users/J7mbo/orgs","repos_url":"https://api.github.com/users/J7mbo/repos","events_url":"https://api.github.com/users/J7mbo/events{/privacy}","received_events_url":"https://api.github.com/users/J7mbo/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T13:22:32Z","updated_at":"2016-11-07T13:22:32Z","body":"Hi! Thanks for the report. Typically this is a project that would be used in another PHP project. As a result, you would *catch* the exception, and then return your own JSON or do whatever you need with your own client."}}
{"actor":{"display_login":"J7mbo"}}