Not Working with Squad

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)


<script>
var vapiInstance = null;
const squad = "<squad_id>"; // Substitute with your squad ID
const apiKey = "<your_public_api_key>"; // 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");

</script>
Was this page helpful?