-
Notifications
You must be signed in to change notification settings - Fork 193
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
Repeated bucket name in req.file.location - Seems an AWS issue #192
Comments
I'm facing the same problem and didn't find the way how to fix it but only to cut a duplicate of bucket name in the file.location by myself. But it seems to happen not with every file I upload, some of them duplicates, and some do not (I can't figure out this strange pattern😅) so I really don't know what to do with this |
To be honest, I have kept const location = req.file.location.replace(`${bucketName}.${bucketName}.`, `${bucketName}.`) |
The issue is related to a mismatch with shared dependencies between
I think the correct way would be to change |
sincere thanks to you guys! |
Just a heads up, I was writing out some unit tests today and came across some odd behavior where the bucket name would be repeated in the
req.file.location
.For example:
This appears to be a problem with @aws-sdk/client-s3 and @aws-sdk/util-endpoints
Last week, I had an issue with @aws-sdk/client-s3 aws/aws-sdk-js-v3#4060 where it started saying that it cannot find
@aws-sdk/util-endpoints
. They have since said the issue is resolved. However, when I use the latest@aws-sdk/client-s3: ^3.196.0
I have the problem mentioned above.When I roll back to
@aws-sdk/client-s3: 3.180.0
all is good.I just want to bring this to your attention. I was unsure how best to report this to AWS as I wasn't sure where the result callback information for location is generated.
If you do end up filing an issue with aws, I would love to follow it.
The text was updated successfully, but these errors were encountered: