You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 15, 2024. It is now read-only.
With the default rate limit (30 per minute) and the default upper bound of query limit (250), the maximum number of results of a query is strictly bounded (250 * 30 = 7,500 per minute). So when the expected number of results is larger than this upper bound, then there is almost no way to get the full results (unless the response is slow and thus it doesn't hit the API 30 times per minute).
Even though the limit in this SDK is not checked, the 250 upper bound is enforced at JupiterOne side:
JupiterOneApiError: [{'code': 'INTERNAL_SERVER_ERROR', 'message': 'Error executing J1QL query: "limit" must be a value between 1 and 250 (inclusive). Received: 500 (code=SYNTAX_ERROR)', 'locations': [{'line': 2, 'column': 3}], 'path': ['queryV1']}]
Reproduction
In the current design, when the expected result is larger than 7,500, and the response time is fast enough to allow >= 30 query execution, a JupiterOneApiRetryError is guaranteed to be triggered.
Environment
Version of this library used: 0.1.0
The text was updated successfully, but these errors were encountered:
It would be very helpful if there could be another variable specifying a start_skip value, so that when rate limit is reached and the exception is raised, I can wait for a certain time and query again with a none zero skip.
Description
With the default rate limit (30 per minute) and the default upper bound of query
limit
(250), the maximum number of results of a query is strictly bounded (250 * 30 = 7,500 per minute). So when the expected number of results is larger than this upper bound, then there is almost no way to get the full results (unless the response is slow and thus it doesn't hit the API 30 times per minute).Even though the
limit
in this SDK is not checked, the 250 upper bound is enforced at JupiterOne side:Reproduction
In the current design, when the expected result is larger than 7,500, and the response time is fast enough to allow >= 30 query execution, a
JupiterOneApiRetryError
is guaranteed to be triggered.Environment
The text was updated successfully, but these errors were encountered: