Skip to content

Commit

Permalink
Revert "Handle a 403 Error from S3 when users don't have full access …
Browse files Browse the repository at this point in the history
…to the S…"

This reverts commit d0a02ed.
  • Loading branch information
FGRCL authored Oct 16, 2024
1 parent d0a02ed commit 26df3fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/server/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,10 @@ async function fileExists(key, anvilConfiguration) {
);
return true;
} catch (err) {
if (err.name === "NotFound" || err.name === "403") {
if (err.name === "NotFound") {
return false;
}
console.log(err);
const message = "Error checking file existence in S3";
logger.error(err, message);
throw new Error(message);
Expand Down

0 comments on commit 26df3fa

Please sign in to comment.