API Error on first cron run "Sum of limit and offset must not exceed 10,000."

Created on 12 August 2022, over 2 years ago
Updated 30 October 2024, 2 months ago

When running cron the first time after install we get the following error:

Failed to fetch asset ids: Client error: `GET https://api.widencollective.com/v2/assets/search?limit=100&offset=10000&query=lastEditDate%3A%5Bafter%201969-12-31T17%3A00%3A00Z%5D%20AND%20rd%3A%28%5Bbefore%2008%2F11%2F2022%5D%20OR%20%5B08%2F11%2F2022%5D%29%20AND%20ed%3A%28%28isEmpty%29%20OR%20%5Bafter%2008%2F11%2F2022%5D%29&include_deleted=true&include_archived=true` resulted in a `400 Bad Request` response:

{
  "error": true,
  "response_code": 400,
  "error_message": "Sum of limit and offset must not exceed 10,000.",
  "stac (truncated...)

Causes For Concern
What impact does this have on accounts with more than 10,000 assets?
Can this happen other times than first cron run and what would be the consiquences?

Steps to Reproduce
1. Install module
2. Connect to DAM account with more than 10,000 assets
3. Run cron

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

🇺🇸United States damondt

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024