Skip to content

fix: ignore analytics request failures - #2346

Merged
1 commit merged into
masterfrom
fix/ignore-analytics-failures
Nov 8, 2021
Merged

fix: ignore analytics request failures#2346
1 commit merged into
masterfrom
fix/ignore-analytics-failures

Conversation

@ghost

@ghost ghost commented Nov 8, 2021

Copy link
Copy Markdown

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