jitsi-admin icon indicating copy to clipboard operation
jitsi-admin copied to clipboard

JitsiMeetExternalAPI is not defined

Open baby-leo opened this issue 1 year ago • 8 comments

i am getting an error that says Uncaught ReferenceError: JitsiMeetExternalAPI is not defined when i try to start a meeting in the same browser tab and when the participant is in waiting is and gets approved. how can i solve this issue

baby-leo avatar Sep 06 '24 12:09 baby-leo

Hello, this meany that the jitsi Url you set up is not correct. Please double check your jitsi meet URL. It is importent not to set the https in front of the server

holema avatar Sep 10 '24 06:09 holema

yes, i have not put the https in the front, i have only enterd the url and , when i enable the cors-header i do not see this problem

baby-leo avatar Sep 13 '24 06:09 baby-leo

Hallo @baby-leo, you already found the solution. you are setting the cors header in your server. So your jitsi admin is not allowed to include the iframe from your jitsi meet domain. There are two solution, add a wildcard "*" to the cors header or remove the header from the response or set your jitsi admin domain in the jitsi meet cors header.

holema avatar Sep 13 '24 07:09 holema

yes but when i enable the cors-header, some important functionalities are lost, i think i have found a better solution, if when it is going to the meeting server, it opens a new tab, this problem would be solved, is there an easy way to do that when evry time it goes to the server easily?

baby-leo avatar Sep 13 '24 08:09 baby-leo

the jitsi admin tries to start the jitsi meeting in an iframe. It opens the jitsi admin only in a new tab when the cors header is set an the url of your jitsi admin is not set in your cors header correctly.

holema avatar Sep 13 '24 08:09 holema

i have tried that, the problem i am facing is that when a participant in a waiting list is accepted, it does not open the meeting in a new tab end it shows me a warning saying the script can not colse a tab, abd bring them back to the login page, instade of to the meeting

baby-leo avatar Sep 13 '24 08:09 baby-leo

here is my error i get to be specific `Uncaught (in promise) TypeError: Failed to fetch at window.fetch (uyutf-950:472:16254) at B (lobbyParticipant.b732bbe9.js:2:13962) at window.onbeforeunload (lobbyParticipant.b732bbe9.js:2:14173) at lobbyParticipant.b732bbe9.js:2:14062 uyutf-950:472

   Uncaught (in promise) TypeError: Failed to fetch
at window.fetch (uyutf-950:472:16254)
at B (lobbyParticipant.b732bbe9.js:2:13962)
at window.onbeforeunload (lobbyParticipant.b732bbe9.js:2:14173)
at lobbyParticipant.b732bbe9.js:2:14062

620.817b65ee.js:2 Uncaught TypeError: r[e] is not a function at o (620.817b65ee.js:2:11696) at Object.success (lobbyParticipant.b732bbe9.js:2:16493) at u (723.3cd42e34.js:2:37550) at Object.fireWith [as resolveWith] (723.3cd42e34.js:2:38298) at S (723.3cd42e34.js:2:89415) at XMLHttpRequest. (723.3cd42e34.js:2:91883)`

baby-leo avatar Sep 13 '24 08:09 baby-leo

HEllo @baby-leo, this sounds strange. Can you retry to reinstall the jitsi admin when you started it with docker by typing bash installDocker.sh

holema avatar Sep 16 '24 20:09 holema