bigcommerce-api-python icon indicating copy to clipboard operation
bigcommerce-api-python copied to clipboard

429 error shouldn't appear should it?

Open sonic182 opened this issue 6 years ago • 0 comments

Hi, I'm having 429 error getting information from the api

I'm creating the client object with:

BigcommerceApi(
            client_id=settings.BIGCOMMERCE_APP_CLIENT_ID,
            store_hash=self.store_hash,
            access_token=self.access_token,
            rate_limiting_management={
                'min_requests_remaining': 3,
                'wait': True,
                'callback_function': None
            })

And it still gets error

imagen

Expected behavior

Not exception

Actual behavior

Exception raised

Steps to reproduce behavior

I were trying to get products data from an customer that have a lot of skus and products

for product in self.client.Products.iterall():
    # some processing ...

    skus = product.skus()  # <- here it raises
    # more code ...

sonic182 avatar Oct 23 '19 08:10 sonic182