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: ignore analytics request failures #2346

Merged
1 commit merged into from
Nov 8, 2021
Merged

Conversation

ghost
Copy link

@ghost ghost commented Nov 8, 2021

Follow up from #2343

We don't want to fail on analytics requests. Previously these failures were being logged as "unhandled rejections" which was picked up bt #2343 as Node 15 onwards now fails with Exit Code 1 on unhandled rejections.

We already have a try/catch which attempts to ignore any thrown errors in postAnalytics. However, since we didn't await the makeRequest call, any errors from the request were being forwarded to the caller rather than thrown and ignored by the catch block within postAnalytics. This PR fixes that.

@ghost ghost mentioned this pull request Nov 8, 2021
4 tasks
@ghost ghost marked this pull request as ready for review November 8, 2021 15:25
@ghost ghost requested review from a team as code owners November 8, 2021 15:25
@ghost ghost merged commit 974424d into master Nov 8, 2021
@ghost ghost deleted the fix/ignore-analytics-failures branch November 8, 2021 16:00
This pull request was closed.
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.

1 participant