Skip to content

Textract needs to run in the same region as the S3 bucket #24

@simonw

Description

@simonw

Got this error from s3-ocr start s3-ocr-many-pdfs --all:

botocore.errorfactory.InvalidS3ObjectException: An error occurred (InvalidS3ObjectException) when calling the StartDocumentTextDetection operation: Unable to get object metadata from S3. Check object key, region and/or access permissions.

https://stackoverflow.com/a/64511389/6083 suggests that the fix is to pass the region here:

client = boto3.client('textract', region_name='us-east-2')

Originally posted by @simonw in #21 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions