Call getting discconected (VAPI+Gemini-Flash 2.5)

Details: I am creating a recruitment bot using Gemini-Flash 2.5 and VAPI. During the conversation, it keeps breaking with the error shown in the attachment. It has been two days and I still haven’t been able to resolve it. With Gemini-Flash 2.0, it works well.

Call ID: 019abb65-1aa5-788e-b615-f786b2e7a538
time: 1764081022769
Response Expected: Next set of question
Error: Please see attached. Console error is pasted below:

could not emit {action: 'error', errorMsg: 'Meeting has ended', error: {}, callClientId: '17640821643690.5208472250220907'}action: "error"callClientId: "17640821643690.5208472250220907"error: details: undefinedmsg: "Meeting has ended"type: "ejected"[[Prototype]]: ObjecterrorMsg: "Meeting has ended"[[Prototype]]: Object Error: Unhandled error. (undefined)
at Y.emit (index.js:38:16915)
at gu.emit (index.js:38:44170)
at r.<anonymous> (index.js:38:48219)
at i.emit (index.js:2:4192)
at r.value (index.js:30:33247)
at r.value (index.js:30:27805)
at o (index.js:22:16504)
vapi.png
Was this page helpful?