VapiAI / client-sdk-web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Even after connecting sometimes it doesn't responds after the firstMessage

mayank-holofy opened this issue · comments

To Init 
vapiRef.current = new Vapi('api-token');
vapiRef.current.on('message', (message) => {
});

vapiRef.current.on('speech-start', () => {
console.log('Speech has started');
});

vapiRef.current.on('speech-end', () => {
console.log('Speech has ended');
});

vapiRef.current.on('call-start', () => {
console.log('Call has started');
});

vapiRef.current.on('call-end', () => {
console.log('Call has stopped');
});

To Start 
  vapiRef.current.start({
  model: {
    provider: 'openai',
    model: 'gpt-3.5-turbo',
    messages: [
      {
        role: 'system',
        content: vapiSystemPromptRef.current,
      },
    ],
  },
  voice: {
    provider: 'azure',
    voiceId: 'en-US-AvaNeural',
  },
  firstMessage: 'Hey!',
  responseDelaySeconds: 0.7,
});

After the first Message it says hi it stops

  • Any errors in the network tab?
  • Check the call logs in the dashboard?

@nikhilro
caught TypeError: Cannot read properties of undefined (reading 'producers') at e.value (eval at <anonymous> (daily-esm.js:7:83831), <anonymous>:9:532100) at eval (eval at <anonymous> (daily-esm.js:7:83831), <anonymous>:9:531689) @nikhilro

Screenshot 2024-04-10 at 15 46 02
Please have a look at this screenshot

can you provide a callIId which has the error ? Will be easier for us to see whats going on

can you provide a callIId which has the error ? Will be easier for us to see whats going on

71de7643-3d1d-4dd1-afe6-612e74037f02
Is the call id @sagar-vapi

From what I can tell, no audio came through from your side or at least call was ended from the frontend before anything came through on that callId.

Could you email support@vapi.ai with some more recent call IDs if still an issue. That's the best channel for integration debugging. This is best for SDK bugs.