{"action":"closed","issue":{"url":"https://api.github.com/repos/woocommerce/woocommerce/issues/17764","repository_url":"https://api.github.com/repos/woocommerce/woocommerce","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/17764/labels{/name}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/17764/comments","events_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/17764/events","html_url":"https://github.com/woocommerce/woocommerce/issues/17764","id":274916488,"number":17764,"title":"API returns two empty lines at the top","user":{"login":"sergiytravnikov","id":24939917,"avatar_url":"https://avatars3.githubusercontent.com/u/24939917?v=4","gravatar_id":"","url":"https://api.github.com/users/sergiytravnikov","html_url":"https://github.com/sergiytravnikov","followers_url":"https://api.github.com/users/sergiytravnikov/followers","following_url":"https://api.github.com/users/sergiytravnikov/following{/other_user}","gists_url":"https://api.github.com/users/sergiytravnikov/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiytravnikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiytravnikov/subscriptions","organizations_url":"https://api.github.com/users/sergiytravnikov/orgs","repos_url":"https://api.github.com/users/sergiytravnikov/repos","events_url":"https://api.github.com/users/sergiytravnikov/events{/privacy}","received_events_url":"https://api.github.com/users/sergiytravnikov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-17T16:14:23Z","updated_at":"2017-11-17T16:19:28Z","closed_at":"2017-11-17T16:19:28Z","author_association":"NONE","body":"https://hollyhillvitamins.com/wp-json/wc/v2/products/categories\r\nhttps://hollyhillvitamins.com/wp-json/wc/v2/products\r\nand other API methods return response with two empty lines at the top. \r\nScreenshot is attached.\r\n![image001a](https://user-images.githubusercontent.com/24939917/32956716-2bb8cf4a-cb7f-11e7-9e20-46b757844be8.png)\r\n\r\nFirefox browser returns error message: \"SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data\". Response has two empty lines. \r\nIn other browsers Response has two empty lines too. \r\nI tested API in browser. I don't use woocomerce for testing.\r\nThe advice to deactivate all plugins did not help.\r\nI think you misunderstand. Plugins are working in WooCommerce. I receive error in API.\r\nWooCommerce and WooCommerce API are absolutely different applications. API can not depend on plugins.\r\nJust API developer has to remove empty lines from the request. It's easy to fix.\r\nWho is an API developer? How to contact API developers?\r\nPlease, send me an email of API expert?"}}
{"actor":{"display_login":"mikejolley"}}