ignore google errors with error_code 0 (#722)

This commit is contained in:
Dave Horton
2024-04-30 07:59:18 -04:00
committed by GitHub
parent b327e797f3
commit 5f67285f1e
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -934,6 +934,10 @@ class TaskGather extends SttTask {
}
async _onJambonzError(cs, ep, evt) {
if (this.vendor === 'google' && evt.error_code === 0) {
this.logger.info({evt}, 'TaskTranscribe:_onJambonzError - ignoring google error code 0');
return;
}
this.logger.info({evt}, 'TaskGather:_onJambonzError');
const {writeAlerts, AlertType} = cs.srf.locals;
if (this.vendor === 'nuance') {
+4
View File
@@ -549,6 +549,10 @@ class TaskTranscribe extends SttTask {
}
async _onJambonzError(cs, _ep, evt) {
if (this.vendor === 'google' && evt.error_code === 0) {
this.logger.info({evt}, 'TaskTranscribe:_onJambonzError - ignoring google error code 0');
return;
}
this.logger.info({evt}, 'TaskTranscribe:_onJambonzError');
if (this.paused) return;
const {writeAlerts, AlertType} = cs.srf.locals;