@eka-care/ekascribe-ts-sdk 1.4.31 → 1.4.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,10 +21,14 @@ export default async function fetchWrapper(url, options = {}, timeoutMs = API_TI
|
|
|
21
21
|
signal: controller.signal,
|
|
22
22
|
credentials: 'include',
|
|
23
23
|
});
|
|
24
|
+
console.log(response, 'response in fetch wrapper');
|
|
25
|
+
if (response.status === 401 || response.status === 403) {
|
|
26
|
+
console.log('unauthorized - fetch wrapper ', response.status);
|
|
27
|
+
}
|
|
24
28
|
return response;
|
|
25
29
|
}
|
|
26
30
|
catch (error) {
|
|
27
|
-
console.error(error);
|
|
31
|
+
console.error(error, 'error in fetch wrapper');
|
|
28
32
|
throw error;
|
|
29
33
|
}
|
|
30
34
|
finally {
|
|
@@ -14,7 +14,7 @@ const startVoiceRecording = async () => {
|
|
|
14
14
|
message: 'Microphone access is required to start recording. Please recheck access.',
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
await vadInstance?.initVad();
|
|
18
18
|
console.log(vadInstance, 'vad in start recording');
|
|
19
19
|
const micVad = vadInstance?.getMicVad();
|
|
20
20
|
console.log(micVad, 'mic vad in start recording');
|