akaszynski / keepa

Python Keepa.com API
https://keepaapi.readthedocs.io/en/latest/
Apache License 2.0
238 stars 77 forks source link

time out and spend tokens much more than the quantity of asins #143

Open dobadthings opened 1 year ago

dobadthings commented 1 year ago

A timeout error occurred when I used the method of query to query an array that contains 100 asins, how to solve this problem? And when the above error occurs, keepa website showed may available tokens went from 300 to more than 100 negative, the document of api shows that would spend 1 token when query 1 asin, why it spent almost 400 tokens rather than 100 tokens?

akaszynski commented 10 months ago

A timeout error occurred when I used the method of query to query an array that contains 100 asins, how to solve this problem?

I'll need some example code to try to reproduce the problem.

And when the above error occurs, keepa website showed may available tokens went from 300 to more than 100 negative, the document of api shows that would spend 1 token when query 1 asin, why it spent almost 400 tokens rather than 100 tokens?

Some queries use more tokens that others. If offers is enabled and update is True, then additional tokens will be consumed.