Bug - Model Search API - Using `processing_status` causes query to fail

Did the model search API change how it handles the processing_status parameter? Suddenly all of my requests are failing with:

{"detail":{"processing_status":["Select a valid choice. succeeded is not one of the available choices."]}}

but I’ve used the same set of queries for a long time. e.g.

curl "https://api.sketchfab.com/v3/search?type=models&downloadable=true&count=1&max_face_count=10000&max_filesizes=gltf%3A16384&processing_status=succeeded&cursor=&q=cube"

The documentation suggests that succeeded is an available choice:

It appears like none of the options for processing_status are acceptable anymore:

{
  "detail": {
    "processing_status": [
      "Select a valid choice. processing is not one of the available choices."
    ]
  }
}
{
  "detail": {
    "processing_status": [
      "Select a valid choice. pending is not one of the available choices."
    ]
  }
}
{
  "detail": {
    "processing_status": [
      "Select a valid choice. failed is not one of the available choices."
    ]
  }
}

This error can be replicated in the built-in test utility:

First reported in the community discord: https://discord.com/channels/691604175322087474/700374866720981093/820007295659409429

Hello,
Indeed there’s a bug with processing status filter. Thanks for reporting it!
We’re working on a fix that will be released shortly.

Processing status is actually a deprecated filter as it doesn’t make much sense to filter on failed/processing models as there is no available 3d data nor download… We’re removing the filter from the doc but don’t worry, you don’t need to update your scripts. The requests will be accepted anyway. It will just not take into account the filter: filtering on failed models will still return models with processing status succeeded.

Thanks again for the bug report.
Thibault

2 Likes