Not Working with Squad
# support
s
I am trying to run vapi using Squad but getting this error {action: 'error', errorMsg: 'Meeting has ended', error: {…}, callFrameId: '17199452136990.358359718185689'}action: "error"callFrameId: "17199452136990.358359718185689"error: details: undefinedmsg: "Exiting meeting because room was deleted"type: "no-room"[[Prototype]]: ObjecterrorMsg: "Meeting has ended"[[Prototype]]: Object (anonymous) var vapiInstance = null; const squad = ""; // Substitute with your squad ID const apiKey = ""; // Substitute with your Public key from Vapi Dashboard. const buttonConfig = {}; // Modify this as required (function (d, t) { var g = document.createElement(t), s = d.getElementsByTagName(t)[0]; g.src = "https://cdn.jsdelivr.net/gh/VapiAI/html-script-tag@latest/dist/assets/index.js"; g.defer = true; g.async = true; s.parentNode.insertBefore(g, s); g.onload = function () { vapiInstance = window.vapiSDK.run({ apiKey: apiKey, // mandatory squad: squad, // mandatory config: buttonConfig, // optional }); }; })(document, "script");
v
@Sudhakar_Prajapati It looks like you're encountering an error indicating that the meeting has ended because the room was deleted. This can happen if the room associated with the Squad ID you're using has been removed or if there's an issue with the Squad ID itself. Here are a few steps you can take to troubleshoot this issue: 1. **Check Squad ID**: Ensure that the
squad
variable in your script is set to the correct Squad ID from your Vapi dashboard. The Squad ID should be an active and valid one. 2. **API Key**: Verify that the
apiKey
variable is set to your correct Public API key from the Vapi dashboard. 3. **Room Status**: Check the status of the room associated with your Squad ID in the Vapi dashboard to ensure it hasn't been deleted or expired. 4. **Network Issues**: Sometimes network issues can cause unexpected behavior. Ensure that your network connection is stable. 5. **Vapi SDK Version**: Make sure you are using the latest version of the Vapi SDK. The URL in your script seems to be pointing to the latest version, but it's always good to double-check. 6. **Error Handling**: Implement error handling in your code to manage such scenarios more gracefully. If you've verified all of the above and the issue persists, it may be best to reach out to Vapi support for further assistance. They can provide more detailed insights into what might be causing the issue with your specific Squad ID or API key. Would you like me to assist you with anything else related to Vapi?
You can continue this conversation by mentioning me in the message.
s
Hey we are working on this.
It's resolved now/
6 Views