{"action":"created","issue":{"url":"https://api.github.com/repos/kloon/WooCommerce-REST-API-Client-Library/issues/120","labels_url":"https://api.github.com/repos/kloon/WooCommerce-REST-API-Client-Library/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/kloon/WooCommerce-REST-API-Client-Library/issues/120/comments","events_url":"https://api.github.com/repos/kloon/WooCommerce-REST-API-Client-Library/issues/120/events","html_url":"https://github.com/kloon/WooCommerce-REST-API-Client-Library/issues/120","id":104236135,"number":120,"title":"Invalid JSON returned ","user":{"login":"alizainprasla","id":820419,"avatar_url":"https://avatars.githubusercontent.com/u/820419?v=3","gravatar_id":"","url":"https://api.github.com/users/alizainprasla","html_url":"https://github.com/alizainprasla","followers_url":"https://api.github.com/users/alizainprasla/followers","following_url":"https://api.github.com/users/alizainprasla/following{/other_user}","gists_url":"https://api.github.com/users/alizainprasla/gists{/gist_id}","starred_url":"https://api.github.com/users/alizainprasla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alizainprasla/subscriptions","organizations_url":"https://api.github.com/users/alizainprasla/orgs","repos_url":"https://api.github.com/users/alizainprasla/repos","events_url":"https://api.github.com/users/alizainprasla/events{/privacy}","received_events_url":"https://api.github.com/users/alizainprasla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-01T10:27:16Z","updated_at":"2015-10-14T18:14:58Z","closed_at":null,"body":"**Getting this error:**\r\nInvalid JSON returned for https://example.com/wc-api/v2/customers?consumer_key=ck_16c66efc72ca35a7f0e0bfca8e04bb534821076f&consumer_secret=cs_ec231bb6ea18eaa07c63d1488a14bdfd5331bf02.\r\n0\r\nstdClass Object\r\n(\r\n    [headers] => Array\r\n        (\r\n            [0] => Accept: application/json\r\n            [1] => Content-Type: application/json\r\n            [2] => User-Agent: WooCommerce API Client-PHP/2.0.1\r\n        )\r\n\r\n    [method] => GET\r\n    [url] => https://example.com/wc-api/v2/customers?consumer_key=ck_16c66efc72ca35a7f0e0bfca8e04bb534821076f&consumer_secret=cs_ec231bb6ea18eaa07c63d1488a14bdfd5331bf02\r\n    [params] => Array\r\n        (\r\n            [consumer_key] => ck_16c66efc72ca35a7f0e0bfca8e04bb534821076f\r\n            [consumer_secret] => cs_ec231bb6ea18eaa07c63d1488a14bdfd5331bf02\r\n        )\r\n    [data] => Array\r\n        (\r\n        )\r\n    [body] => \r\n    [duration] => 0.15993\r\n)\r\nstdClass Object\r\n(\r\n    [body] => \r\n    [code] => 0\r\n    [headers] => Array\r\n        (\r\n        )\r\n)\r\n\r\n**Return valid url on**\r\n\r\n$options = array(\r\n\t'debug'           => true,\r\n\t'return_as_array' => false,\r\n\t'validate_url'    => true,\r\n\t'timeout'         => 30,\r\n\t'ssl_verify'      => true,\r\n);\r\n\r\n\r\n**showing:**\r\nInvalid URL, no WC API found at https://cubixcube.com/html/dvm/wc-api/v2/ -- ensure your store URL is correct and pretty permalinks are enabled. 404 \r\n"},"comment":{"url":"https://api.github.com/repos/kloon/WooCommerce-REST-API-Client-Library/issues/comments/148142274","html_url":"https://github.com/kloon/WooCommerce-REST-API-Client-Library/issues/120#issuecomment-148142274","issue_url":"https://api.github.com/repos/kloon/WooCommerce-REST-API-Client-Library/issues/120","id":148142274,"user":{"login":"pipegris","id":8752638,"avatar_url":"https://avatars.githubusercontent.com/u/8752638?v=3","gravatar_id":"","url":"https://api.github.com/users/pipegris","html_url":"https://github.com/pipegris","followers_url":"https://api.github.com/users/pipegris/followers","following_url":"https://api.github.com/users/pipegris/following{/other_user}","gists_url":"https://api.github.com/users/pipegris/gists{/gist_id}","starred_url":"https://api.github.com/users/pipegris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pipegris/subscriptions","organizations_url":"https://api.github.com/users/pipegris/orgs","repos_url":"https://api.github.com/users/pipegris/repos","events_url":"https://api.github.com/users/pipegris/events{/privacy}","received_events_url":"https://api.github.com/users/pipegris/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T18:14:58Z","updated_at":"2015-10-14T18:14:58Z","body":"Hi!\r\nI am using the client to create products I pull from an external API, I'm also getting \"Invalid JSON returned for...\" in some of my requests, but the code is 201, the body is an empty string \"\", the product get correctly created, but the code throws that exception."}}