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

Update s3 error handling and logs #1646

Merged
merged 1 commit into from
Jun 10, 2024
Merged

Update s3 error handling and logs #1646

merged 1 commit into from
Jun 10, 2024

Conversation

joshbwlng
Copy link
Contributor

@joshbwlng joshbwlng commented May 28, 2024

Change-type: patch


A continuation of #1643 splitting the logic up a bit and throwing more often (avoid swallowing errors)

@joshbwlng joshbwlng self-assigned this May 28, 2024
@joshbwlng joshbwlng requested a review from thgreasi May 28, 2024 09:19
@flowzone-app flowzone-app bot enabled auto-merge May 28, 2024 09:28
@joshbwlng joshbwlng force-pushed the joshbwlng/s3-errors branch 2 times, most recently from 3700666 to eb7d16f Compare June 9, 2024 22:16
@@ -57,19 +57,20 @@ function createS3Client() {

const s3Client = createS3Client();

function logUnauthenticatedWarning(
function isUnauthenticated(
Copy link
Member

@thgreasi thgreasi Jun 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about v ?

function isUnauthenticatedError(
	clientS3: UnauthenticatedS3Facade | AWSWrapper.AWS.S3,
	err: Error, // or any ?
): boolean {

@thgreasi thgreasi marked this pull request as draft June 10, 2024 09:01
auto-merge was automatically disabled June 10, 2024 09:01

Pull request was converted to draft

@joshbwlng joshbwlng marked this pull request as ready for review June 10, 2024 22:05
@joshbwlng joshbwlng merged commit d651c42 into master Jun 10, 2024
47 checks passed
@joshbwlng joshbwlng deleted the joshbwlng/s3-errors branch June 10, 2024 22:05
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

Successfully merging this pull request may close these issues.

2 participants