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 unhandled exception on updaters #446

Merged
merged 3 commits into from
Apr 29, 2022

Conversation

alfetopito
Copy link
Collaborator

Summary

Assorted fix on two unhandled exceptions that caused the app to crash locally.
On prod they are not an issue since they are swallowed and logged as errors.

  • Unhandled exception on PendingOrdersUpdater
  • Unhandled exception on UnfillableOrdersUpdater

To Test

Can't really tell how to force them. It happened while developing locally.
It seems I was having connection issues at the time and it just caused the app to crash.

@alfetopito alfetopito self-assigned this Apr 22, 2022
@alfetopito alfetopito requested a review from a team April 22, 2022 16:42
@github-actions
Copy link
Contributor

CLA Assistant Lite All Contributors have signed the CLA.

console.debug('[UnfillableOrdersUpdater::updateUnfillable] No price quote for', order.id.slice(0, 8))
}
})
.catch((e) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Everything else is a formatting change, I've only added the catch block in this file

@github-actions
Copy link
Contributor

  • 🔭 GP Swap: CoW Protocol v2 Swap UI

@alfetopito alfetopito force-pushed the fix-unhandled-exception-on-updaters branch from 559dfa1 to 74733fa Compare April 28, 2022 16:16
@alfetopito alfetopito added the Auto-merge PRs with this tag will be automatically merged when approved and CI succeeds label Apr 28, 2022
@alfetopito alfetopito merged commit c28394b into develop Apr 29, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Apr 29, 2022
@alfetopito alfetopito deleted the fix-unhandled-exception-on-updaters branch July 18, 2022 16:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Auto-merge PRs with this tag will be automatically merged when approved and CI succeeds
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants