Hi Claudio!
After spending an entire day on this, I finally managed to narrow down the problem to this particular error:
Invalid URL, no WC API found at http://www.gsm-automation.com/gsm/wc-api/v2/ -- ensure your store URL is correct and pretty permalinks are enabled. 404
I am using Woocommerce Rest Api library and I was getting an invalid JSON error. When i set the 'validate_url' parameter to true, the library retued this error. As already mentioned, I have enabled pretty permalinks and I don't know what else to do with my site URL because this IS the url!
Also, I am sending an HTTP request so I have used all the parameters as mentioned in the documentation. I get this reply when i set 'validate_url' to false:
`Invalid JSON retued for http://www.gsm-automation.com/gsm/wc-api/v2/orders?oauth_consumer_key=ck_1c6786d01a5a7e74653724dabe082d0a5a1d6a58&oauth_timestamp=1463164149&oauth_nonce=725559d6c22df92f247214966a55fc0f57f99e33&oauth_signature_method=HMAC-SHA256&oauth_signature=OVuXBbHmVEzOVYeJ4xanlb7ByXrmHlb7%2BFPWQkvPyjw%3D.
0
stdClass Object
(
[headers] => Array
(
[0] => Accept: application/json
[1] => Content-Type: application/json
[2] => User-Agent: WooCommerce API Client-PHP/2.0.1
)
[method] => GET
[url] => http://www.gsm-automation.com/gsm/wc-api/v2/orders?oauth_consumer_key=ck_1c6786d01a5a7e74653724dabe082d0a5a1d6a58&oauth_timestamp=1463164149&oauth_nonce=725559d6c22df92f247214966a55fc0f57f99e33&oauth_signature_method=HMAC-SHA256&oauth_signature=OVuXBbHmVEzOVYeJ4xanlb7ByXrmHlb7%2BFPWQkvPyjw%3D
[params] => Array
(
[oauth_consumer_key] => ck_1c6786d01a5a7e74653724dabe082d0a5a1d6a58
[oauth_timestamp] => 1463164149
[oauth_nonce] => 725559d6c22df92f247214966a55fc0f57f99e33
[oauth_signature_method] => HMAC-SHA256
[oauth_signature] => OVuXBbHmVEzOVYeJ4xanlb7ByXrmHlb7+FPWQkvPyjw=
)
[data] => Array
(
)
[body] =>
[duration] => 0.67395
)
stdClass Object
(
[body] =>
[code] => 0
[headers] => Array
(
)
)