Vapi widget - Bubble.io
# support
s
Hello, I have been using Vapi in a bubble.io website. I used the code in and HTML iFrame inside a bubble.io page. The code is in line with the exemple in the doc : https://docs.vapi.ai/examples/voice-widget It worked well, but since several days when I click on the icon to start the call, it is stuck in "Connecting..." I have the following message in the console : DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin 'null' in a call to 'postMessage'. at t.value (https://cdn.jsdelivr.net/gh/VapiAI/html-script-tag@latest/dist/assets/index.js:23:24413) at re.value (https://cdn.jsdelivr.net/gh/VapiAI/html-script-tag@latest/dist/assets/index.js:31:20986) at re.value (https://cdn.jsdelivr.net/gh/VapiAI/html-script-tag@latest/dist/assets/index.js:31:19588) at gl.start (https://cdn.jsdelivr.net/gh/VapiAI/html-script-tag@latest/dist/assets/index.js:39:26397) start @ index.js:39 await in start (async) a @ index.js:156 index.js:23 Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin 'null' in a call to 'postMessage'. at t.value (https://cdn.jsdelivr.net/gh/VapiAI/html-script-tag@latest/dist/assets/index.js:23:24413) at re.value (https://cdn.jsdelivr.net/gh/VapiAI/html-script-tag@latest/dist/assets/index.js:31:20986) at re.value (https://cdn.jsdelivr.net/gh/VapiAI/html-script-tag@latest/dist/assets/index.js:31:19588) at gl.start (https://cdn.jsdelivr.net/gh/VapiAI/html-script-tag@latest/dist/assets/index.js:39:26397) Any idea why ? @Vapi Support : Is it possible to have the URL of the previous version of the script in order to test it ? Assistant id : d3495783-98c4-4157-8919-19303420e67a Call id : 70930440-4eb0-4094-b148-845360740841 Thanks
v
Please tag me in threads that I was a part of from the start.
s
Let me check
s
@Sahil Any luck on this issue please ? WOuld it be possible to share the previous version of the scipt so that I can make the test with it ? It seems that I have this issue since the 1.1.0 version that was released two weeks ago....
s
@zoratrox360 could you please take a look into this issue?
@skoiteur can you please ask this question during the OH which is on monday at 11pm to 12AM IST.
@skoiteur Add this code to your widget HTML code it will fix it.
Copy code
js
        var vapiSupportBtn = document.getElementById('vapi-support-btn');
        if (vapiSupportBtn) {
            vapiSupportBtn.style.zIndex = '10'; // Set zIndex to 10
        }
Also, remove the Iframe option.
s
@Sahil it works, thank you !
s
You are welcome