Unstructured-IO / unstructured-api

Apache License 2.0
489 stars 102 forks source link

catch 500 error for fast strategy #316

Closed Coniferish closed 9 months ago

Coniferish commented 9 months ago

Closes #314

We don't support any fallback for fast strategy on images anymore, and unst will raise value error if partition uses fast strategy for image files. This catches the error and raises a 400 HTTPException.

Also, this refactors pipeline_api to extract out some validation of arguments.

sentry-io[bot] commented 9 months ago

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

Did you find this useful? React with a 👍 or 👎