File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 44 "invalidEvent" : " Usage tracking event {{ eventName }} is not a valid event type." ,
55 "sendingEventAuthenticated" : " Sending usage event to authenticated endpoint" ,
66 "retryingEventUnauthenticated" : " Failed to send the usage event as authenticated. Trying again as unauthenticated." ,
7- "sendingEventUnauthenticated" : " Sending usage event to unauthenticated endpoint"
7+ "sendingEventUnauthenticated" : " Sending usage event to unauthenticated endpoint" ,
8+ "unauthenticatedSendFailed" : " Failed to send usage event to unauthenticated endpoint"
89 },
910 "archive" : {
1011 "extractZip" : {
Original file line number Diff line number Diff line change @@ -67,5 +67,10 @@ export async function trackUsage(
6767 resolveWithFullResponse : true ,
6868 } ) ;
6969 logger . debug ( i18n ( `${ i18nKey } .sendingEventUnauthenticated` ) ) ;
70- return httpClient ( { ...axiosConfig , method : 'post' } ) ;
70+
71+ try {
72+ await httpClient ( { ...axiosConfig , method : 'post' } ) ;
73+ } catch ( e ) {
74+ logger . debug ( i18n ( `${ i18nKey } .unauthenticatedSendFailed` ) ) ;
75+ }
7176}
You can’t perform that action at this time.
0 commit comments