codeswholesale / codeswholesale-sdk-php

A PHP wrapper for CodesWholesale's API
Apache License 2.0
36 stars 21 forks source link

Get List Product Error Warning #40

Open EagleSH opened 3 years ago

EagleSH commented 3 years ago

sometimes we have this Get List Product Error Warning: First parameter must either be an object or the name of an existing class in codeswholesale/sdk/src/CodesWholesale/Resource/Resource.php on line 48

and nothing works, why this?

officialmmt commented 3 years ago

It is actually working did you check the sample(list-products.php) at vendor?

EagleSH commented 3 years ago

It is actually working did you check the sample(list-products.php) at vendor?

yes, its working now and as i said sometimes i get this error, today half of day i seeing this error. but now its suddenly started to work

any throughts?i will be very appriciated

EagleSH commented 3 years ago

[2020-11-02 10:02:02] main.CRITICAL: Get List Product Error Server error: GET https://api.codeswholesale.com/v2/products resulted in a 504 Gateway Time-out response:

504 Gateway Time-out

504 Gateway Time-out

mvdhoek1 commented 3 years ago

I've seen this error before. I use this package together with the Themosis framework and Wordpress. First I've tried to start an products import from the wp-cli. I guess this was to early in the proces so I was faced with the same error. Now I'm starting the import via my routes file and the error did not show up.

Not sure if this answer is useful but maybe this can you give some sort of insight in to your problem.