Skip to content

Strange result from 1.0/catalog/products/ #338

Answered by mkb79
armsby asked this question in Q&A
Discussion options

You must be logged in to vote

I'll found the reason for this behavior. It's the authenticated request, which will result in a response of only 1 item.

If you disable authentication like:

auth = Authenticator.from_file(auth_file)
with Client(auth, country_code="us") as client:
    r = client.get(
        "catalog/products",
        num_results=50,
        title="And Less Than Kind",
        response_groups="media,series,product_desc,product_extended_attrs,contributors,category_ladders,rating,product_attrs",
        auth=None  # disable auth for this request
    )
    print(r)

you'll got a response with 2 results.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mkb79
Comment options

mkb79 Feb 4, 2024
Maintainer

@armsby
Comment options

@mkb79
Comment options

mkb79 Feb 4, 2024
Maintainer

@armsby
Comment options

@mkb79
Comment options

mkb79 Feb 4, 2024
Maintainer

Answer selected by mkb79
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants