Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: The fast strategy is not available for image files. #325

Closed
sentry-io bot opened this issue Dec 7, 2023 · 1 comment
Closed

ValueError: The fast strategy is not available for image files. #325

sentry-io bot opened this issue Dec 7, 2023 · 1 comment

Comments

@sentry-io
Copy link

sentry-io bot commented Dec 7, 2023

Sentry Issue: UNSTRUCTURED-API-B8

ValueError: The fast strategy is not available for image files.
(28 additional frame(s) were not displayed)
...
  File "unstructured/file_utils/filetype.py", line 546, in wrapper
    elements = func(*args, **kwargs)
  File "unstructured/chunking/title.py", line 241, in wrapper
    elements = func(*args, **kwargs)
  File "unstructured/partition/image.py", line 83, in partition_image
    return partition_pdf_or_image(
  File "unstructured/partition/pdf.py", line 238, in partition_pdf_or_image
    validate_strategy(strategy, is_image)
  File "unstructured/partition/strategies.py", line 22, in validate_strategy
    raise ValueError("The fast strategy is not available for image files.")

This is raised from the library and just needs to be wrapped in HTTPError.

@awalker4
Copy link
Collaborator

Dupe of #314

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant