I’m developing an application for voice transcription using OpenAI’s Whisper model. It works correctly when I run it on localhost:8080, but I’m encountering issues when it attempts to retrieve text from OpenAI’s servers.
Every time I upload an audio file to transcribe, I face a connection error that interrupts the process. Below is the error message I receive:
Received file: uploads/input.wav
Error during transcription: APIConnectionError: Connection error.
at OpenAI.makeRequest (/Users/vivannkhanna/voice-recorder-app/node_modules/openai/core.js:304:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /Users/vivannkhanna/voice-recorder-app/server.js:42:37 {
status: undefined,
headers: undefined,
request_id: undefined,
erro: undefined,
code: undefined,
param: undefined,
type: undefined,
cause: FetchError: request to https://api.openai.com/v1/audio/transcriptions failed, reason: read ECONNRESET
at ClientRequest.<anonymous> (/Users/vivannkhanna/voice-recorder-app/node_modules/node-fetch/lib/index.js:1501:11)
at ClientRequest.emit (node:events:519:28)
at TLSSocket.socketErrorListener (node:_http_client:500:9)
at TLSSocket.emit (node:events:531:35)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
erro: 'ECONNRESET',
code: 'ECONNRESET'
}
The connection seems to drop unexpectedly during the request. Has anyone encountered similar issues with OpenAI’s service? What might be causing these connection resets?