[woocommerce_rest_cannot_view]
Server Ubuntu Nginx Mysql 5.7 PHP 7.2
Exception : Error: Desculpe, não pode listar os recursos. [woocommerce_rest_cannot_view]
at F:\Desenvolvimento\Projects\bpm\vendor\codexshaper\laravel-woocommerce\src\Traits\QueryBuilderTrait.php:241 237| $totalResults = WooCommerce::countResults(); 238| 239| return $totalResults; 240| } catch (\Exception $ex) {
241| throw new \Exception($ex->getMessage(), 1); 242| } 243| } 244| 245| /**
Exception trace:
1 Codexshaper\WooCommerce\Models\Product::count() F:\Desenvolvimento\Projects\bpm\vendor\codexshaper\laravel-woocommerce\src\Models\BaseModel.php:45
2 Codexshaper\WooCommerce\Models\BaseModel::__call("count", []) F:\Desenvolvimento\Projects\bpm\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php:237
Please use the argument -v to see more details.
Hello @ruibarbosareb
Thanks for creating an issue. I checked latest version v2.6 and it works perfectly. Check some basic settings
-
Check your API key has proper permission
read and write
-
API Key and secret

-
Is your shop url SSL protected? For example
https://www.store.comthen allowverify_ssltotrue. To solve it go to your .env file addWOOCOMMERCE_VERIFY_SSL=true
check credentials and reload hard. If you still face issue the mail me at [email protected]
Hello, Thanks for the quick response,
I have the credentials, created: https://prnt.sc/selv01
Have SSL and verify_ssl true: https://prnt.sc/selvn6
I believe it is from nginx. This happened from one moment to the next, in production, where no changes were made.
I checked the NGINX log and the request arrives at the server without a problem.