Failed to download file from S3 bucket #5287
Unanswered
BrianLe188
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm coding a project using s3 to store file pdf and use langchain to connect and load files.
This is my code:
const loader = new S3Loader({
bucket: process.env.BUCKET,
key: filekey, // example: test/e3959622-7fb1-44ab-a506.pdf
s3Config: { accessKeyId: process.env.S3_ACCESS_KEY, secretAccessKey: process.env.S3_SECRET_KEY, region: "us-east-1" }, unstructuredAPIURL: "http://localhost:8000/general/v0/general", // confusing
});
when uploading files to s3, everything is good. But, when I try to call my API to handle for feature, I get this error: Failed to download file test/e3959622-7fb1-44ab-a506.pdf from S3 bucket.
Please, explain to me. Thanks
Beta Was this translation helpful? Give feedback.
All reactions