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: address unhandled promise rejections & bump node to v16.13 #2398

Merged
merged 5 commits into from
Jan 27, 2022

Conversation

TheCatLady
Copy link
Collaborator

@TheCatLady TheCatLady commented Jan 6, 2022

Description

node 16 deprecated unhandled promise rejections, resulting in app termination when promise rejections are not handled.

This PR fixes the many instances where Overseerr does not safeguard against failed TMDb API requests with try/catch blocks, and also adds/tweaks logging.

This PR also bumps the node to v16.13, to allow for verification in the develop branch that there are no more instances of this issue that need to be addressed before the next stable release.

Also of note:

  • The /settings/radarr/{radarrId}/profiles is unused and thus was removed in this PR (there is no equivalent to retrieve Sonarr profiles)
  • Notification-related portions of the MediaRequest entity were refactored to reduce duplication of logic
  • Logging improvements were made for usefulness (e.g., logging *arr add options) and consistency (log messages/labels) in files that were already being modified in this PR

Screenshot (if UI-related)

N/A

To-Dos

  • Successful build yarn build

Issues Fixed or Closed

N/A

@TheCatLady TheCatLady force-pushed the fix/unhandled-promise-rejections branch 5 times, most recently from 4d86682 to 911153a Compare January 20, 2022 01:20
@TheCatLady TheCatLady force-pushed the fix/unhandled-promise-rejections branch from 816d360 to 4b712f5 Compare January 20, 2022 13:55
Copy link
Owner

@sct sct left a comment

Choose a reason for hiding this comment

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

LGTM!

@sct sct merged commit 8cba486 into develop Jan 27, 2022
@sct sct deleted the fix/unhandled-promise-rejections branch January 27, 2022 11:00
@github-actions
Copy link

github-actions bot commented Apr 1, 2022

🎉 This PR is included in version 1.29.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants