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

fix(lambda-tiler): prevent unhandled promise rejections when the rejection is handled BM-1067 #3329

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

blacha
Copy link
Member

@blacha blacha commented Aug 21, 2024

Motivation

Fetching data from remote services can and will error on occasion, the promises to fetch data from tiffs has two .then() one of the .then() has a associated .catch() the other does not, this leads to a UnhandledPromiseRejection

Modifications

Do not use a .then() without .catch()

Verification

Unit test addded.
also checked the code base for more usages of void ....then() without .catch and they only occur in the landing page.

@blacha blacha marked this pull request as ready for review August 21, 2024 23:29
@blacha blacha requested a review from a team as a code owner August 21, 2024 23:29
@blacha blacha requested a review from Wentao-Kuang August 21, 2024 23:29
@Wentao-Kuang
Copy link
Contributor

I didn't see any unit tests added based on your PR description. Might forgot to upload?

@blacha
Copy link
Member Author

blacha commented Aug 22, 2024

I didn't see any unit tests added based on your PR description. Might forgot to upload?

Your quite right, I missed the test file.

@blacha blacha added this pull request to the merge queue Aug 23, 2024
Merged via the queue into master with commit 445da7f Aug 23, 2024
10 of 11 checks passed
@blacha blacha deleted the fix/unhandled-promise-rejection branch August 23, 2024 02:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants