Error with package - not connecting
# support
d
v
Hi @DomnulZeu, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [List Calls]() * [Get Call]() * [Create Phone Call]() * [Vapi Web SDK]() -----------------------------
### Answer It seems like you're experiencing issues with the Vapi Web SDK package not connecting properly. To address this issue, please ensure that you're using the correct version and setup as per the Vapi Web SDK documentation. You may want to verify the initialization of your Vapi instance and how you're starting the call, ensuring that your public key and other setup details are correctly implemented. Here’s a basic example of how you might initialize and start a session with the Vapi Web SDK:
Copy code
javascript
import Vapi from '@vapi-ai/web';

const vapi = new Vapi('your-public-key');

vapi.start('your-assistant-id')
    .then(() => console.log('Call started'))
    .catch(err => console.error('Error starting the call:', err));
[(1)]() Additionally, make sure that your network configurations, such as firewalls or proxy settings, are not blocking the SDK’s requests. If the problem persists, checking the console for any specific error messages could provide more insight into what might be going wrong.
Got it. Tagging @User for additional help.
s
Please update the package. The current version is 1.1.7
v
Glad I could be helpful. Feel free to create a new thread with any new questions you may have.
3 Views