laravel-woocommerce icon indicating copy to clipboard operation
laravel-woocommerce copied to clipboard

[woocommerce_rest_cannot_view]

Open ruibarbosareb opened this issue 5 years ago • 2 comments

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.

ruibarbosareb avatar May 10 '20 17:05 ruibarbosareb

Hello @ruibarbosareb

Thanks for creating an issue. I checked latest version v2.6 and it works perfectly. Check some basic settings

  1. Check your API key has proper permission read and write API permission

  2. API Key and secret API key

  3. Is your shop url SSL protected? For example https://www.store.com then allow verify_ssl to true. To solve it go to your .env file add WOOCOMMERCE_VERIFY_SSL=true

check credentials and reload hard. If you still face issue the mail me at [email protected]

maab16 avatar May 10 '20 23:05 maab16

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.

ruibarbosareb avatar May 11 '20 10:05 ruibarbosareb