Hi everyone,
I'm encountering an issue with the Google Generative AI API, and I'm seeking assistance to resolve it. Here's the error message I'm seeing:
Error during transcription processing: GoogleGenerativeAIError: [VertexAI.GoogleGenerativeAIError]: exception posting request to model
at /Users/yuvraj/ai-backend-transcribe/node_modules/@google-cloud/vertexai/build/src/functions/generate_content.js:49:15
at async generateContent (/Users/yuvraj/ai-backend-transcribe/node_modules/@google-cloud/vertexai/build/src/functions/generate_content.js:39:22)
at async exports.transcribeVideo (/Users/yuvraj/ai-backend-transcribe/controllers/videotranscribe.controllers.js:276:18) {
stackTrace: TypeError: fetch failed
at node:internal/deps/undici/undici:12618:11
at async generateContent (/Users/yuvraj/ai-backend-transcribe/node_modules/@google-cloud/vertexai/build/src/functions/generate_content.js:39:22)
at async exports.transcribeVideo (/Users/yuvraj/ai-backend-transcribe/controllers/videotranscribe.controllers.js:276:18) {
cause: HeadersTimeoutError: Headers Timeout Error
at Timeout.onParserTimeout [as callback] (node:internal/deps/undici/undici:9117:32)
at Timeout.onTimeout [as _onTimeout] (node:internal/deps/undici/undici:7148:17)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7) {
code: 'UND_ERR_HEADERS_TIMEOUT'
}
}
}
Details:
I have verified that my network connection is stable and that there are no issues with the API endpoint itself. I suspect it might be related to a timeout in receiving headers or a configuration issue.
Has anyone experienced similar issues or have any insights into how I might resolve this? Any advice or troubleshooting steps would be greatly appreciated!
Thanks in advance!
We're having the same issue