jitsi / jitsi-meet

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
https://jitsi.org/meet
Apache License 2.0
22.2k stars 6.6k forks source link

JitsiMeetSDK : [features/base/lib-jitsi-meet] Failed to load config from https://myserver.com/config.js #5916

Closed ankathiriya closed 3 years ago

ankathiriya commented 4 years ago

Every time getting error

JitsiMeetSDK: [features/base/lib-jitsi-meet] Failed to load config from https://myserver.com/config.js Error(AbortError){"message":"Aborted","stack":"Error: Aborted\n at anonymous (index.android.bundle:135:6514)\n at anonymous (index.android.bundle:135:7422)\n at call (native)\n at dispatchEvent (index.android.bundle:126:5676)\n at value (index.android.bundle:121:5993)\n at value (index.android.bundle:121:5621)\n at l (index.android.bundle:135:6840)\n at call (native)\n at dispatchEvent (index.android.bundle:144:5676)\n at value (index.android.bundle:143:1114)\n at anonymous (index.android.bundle:871:490)\n at anonymous (index.android.bundle:399:500)\n at apply (native)\n at value (index.android.bundle:50:1280)\n at apply (native)\n at value (index.android.bundle:37:3685)\n at anonymous (index.android.bundle:37:841)\n at value (index.android.bundle:37:2939)\n at value (index.android.bundle:37:813)"}

saghul commented 4 years ago

This probably means it could te loaded on a timely manner. IIRC our timeout in2.5 seconds. Any chance the server is somehow taking longer to respond?

Cmdrobot commented 4 years ago

@saghul I have the same issue how to solve it?

saghul commented 4 years ago

Does your server take that long to respond?

Cmdrobot commented 4 years ago

less than 2.5 second this is my logs

04-17 01:49:41.913 30663 31269 I JitsiMeetSDK: AudioMode Update audio route for mode: 0 04-17 01:49:41.919 30663 31230 I JitsiMeetSDK: [features/base/net-info] Network changed {"isOnline":true,"details":{"isConnectionExpensive":false},"networkType":"wifi"} 04-17 01:49:41.920 30663 31230 D JitsiMeetSDK: [features/base/lastn] There is no active conference, not updating last N 04-17 01:49:41.922 30663 31269 I JitsiMeetSDK: AudioMode Updating audio device list 04-17 01:49:41.929 30663 31230 I JitsiMeetSDK: [features/base/connection] No connection found while disconnecting. 04-17 01:49:41.946 30663 31230 D JitsiMeetSDK: [features/base/lastn] There is no active conference, not updating last N 04-17 01:49:42.065 30663 31230 E JitsiMeetSDK: [features/base/lib-jitsi-meet] Failed to load config from https://workchat.org:8443/config.js?room=ssssss Error(TypeError){"message":"Network request failed","stack":"TypeError: Network request failed\n at anonymous (index.android.bundle:135:7285)\n at call (native)\n at dispatchEvent (index.android.bundle:126:5676)\n at value (index.android.bundle:121:6095)\n at value (index.android.bundle:121:2835)\n at apply (native)\n at anonymous (index.android.bundle:121:5024)\n at apply (native)\n at value (index.android.bundle:50:1280)\n at apply (native)\n at value (index.android.bundle:37:3685)\n at anonymous (index.android.bundle:37:841)\n at value (index.android.bundle:37:2939)\n at value (index.android.bundle:37:813)"} 04-17 01:49:42.115 30663 31230 I JitsiMeetSDK: [features/overlay] The conference will be reloaded after 24 seconds. 04-17 01:49:42.116 30663 31230 D JitsiMeetSDK: ExternalAPI Sending event: CONFERENCE_TERMINATED with data: { NativeMap: {"error":"TypeError: Network request failed","url":"https://workchat.org:8443/ssssss"} } 04-17 01:49:42.122 30663 30663 I JitsiMeetSDK: Conference terminated: {error=TypeError: Network request failed, url=https://workchat.org:8443/ssssss} 04-17 01:49:42.149 30663 31230 I JitsiMeetSDK: [features/base/connection] No connection found while disconnecting. 04-17 01:49:42.172 30663 31230 I JitsiMeetSDK: [features/base/config] Extending config with: {"startAudioOnly":false,"startWithAudioMuted":false,"startWithVideoMuted":false} 04-17 01:49:42.191 30663 31230 I JitsiMeetSDK: [modules/RTC/ScreenObtainer.js] Screen sharing not supported by the current browser: react-native 04-17 01:49:42.202 30663 31230 I JitsiMeetSDK: [modules/RTC/ScreenObtainer.js] Desktop sharing disabled 04-17 01:49:42.203 30663 31230 I JitsiMeetSDK: [features/base/media] Start muted: 04-17 01:49:42.211 30663 31230 I JitsiMeetSDK: [features/base/media] Start audio only set to false 04-17 01:49:42.218 30663 31230 D JitsiMeetSDK: [features/analytics] Loaded 0 analytics handlers 04-17 01:49:42.233 30663 31230 W JitsiMeetSDK: [features/calendar-sync] Calendar access not granted. 04-17 01:49:42.235 30663 31230 D JitsiMeetSDK: [modules/RTC/RTCUtils.js] Available devices: [ { kind: 'videoinput', 04-17 01:49:42.235 30663 31230 D JitsiMeetSDK: label: '0', 04-17 01:49:42.235 30663 31230 D JitsiMeetSDK: groupId: '', 04-17 01:49:42.235 30663 31230 D JitsiMeetSDK: deviceId: '0', 04-17 01:49:42.235 30663 31230 D JitsiMeetSDK: facing: 'environment' }, 04-17 01:49:42.235 30663 31230 D JitsiMeetSDK: { kind: 'videoinput', 04-17 01:49:42.235 30663 31230 D JitsiMeetSDK: label: '1', 04-17 01:49:42.235 30663 31230 D JitsiMeetSDK: groupId: '', 04-17 01:49:42.235 30663 31230 D JitsiMeetSDK: deviceId: '1', 04-17 01:49:42.235 30663 31230 D JitsiMeetSDK: facing: 'front' }, 04-17 01:49:42.235 30663 31230 D JitsiMeetSDK: { kind: 'audioinput', 04-17 01:49:42.235 30663 31230 D JitsiMeetSDK: label: 'Audio', 04-17 01:49:42.235 30663 31230 D JitsiMeetSDK: groupId: '', 04-17 01:49:42.235 30663 31230 D JitsiMeetSDK: deviceId: 'audio-1' } ] 04-17 01:49:42.607 30663 31230 D JitsiMeetSDK: [features/base/lastn] There is no active conference, not updating last N 04-17 01:49:42.623 30663 31230 I JitsiMeetSDK: [features/base/connection] No connection found while disconnecting. 04-17 01:49:42.623 30663 31230 I JitsiMeetSDK: [features/base/config] Extending config with: {"startAudioOnly":false,"startWithAudioMuted":false,"startWithVideoMuted":false} 04-17 01:49:42.639 30663 31230 I JitsiMeetSDK: [modules/RTC/ScreenObtainer.js] Screen sharing not supported by the current browser: react-native 04-17 01:49:42.649 30663 31230 I JitsiMeetSDK: [modules/RTC/ScreenObtainer.js] Desktop sharing disabled 04-17 01:49:42.650 30663 31230 I JitsiMeetSDK: [features/base/media] Start muted: 04-17 01:49:42.654 30663 31230 I JitsiMeetSDK: [features/base/media] Start audio only set to false 04-17 01:49:42.660 30663 31230 D JitsiMeetSDK: [features/analytics] Loaded 0 analytics handlers 04-17 01:49:42.676 30663 31230 W JitsiMeetSDK: [features/base/sounds] PLAY_SOUND: no sound found for id: PARTICIPANT_LEFT_SOUND 04-17 01:49:42.682 30663 31230 D JitsiMeetSDK: [features/base/lastn] There is no active conference, not updating last N 04-17 01:49:42.686 30663 31230 W JitsiMeetSDK: [features/base/sounds] _REMOVE_AUDIO_ELEMENT: no sound for id: PARTICIPANT_JOINED_SOUND 04-17 01:49:42.689 30663 31230 W JitsiMeetSDK: [features/base/sounds] _REMOVE_AUDIO_ELEMENT: no sound for id: PARTICIPANT_LEFT_SOUND 04-17 01:49:42.691 30663 31230 W JitsiMeetSDK: [features/base/sounds] _REMOVE_AUDIO_ELEMENT: no sound for id: INCOMING_MSG_SOUND 04-17 01:49:42.695 30663 31230 W JitsiMeetSDK: [features/base/sounds] _REMOVE_AUDIO_ELEMENT: no sound for id: LIVE_STREAMING_OFF_SOUND 04-17 01:49:42.699 30663 31230 W JitsiMeetSDK: [features/base/sounds] _REMOVE_AUDIO_ELEMENT: no sound for id: LIVE_STREAMING_ON_SOUND 04-17 01:49:42.703 30663 31230 W JitsiMeetSDK: [features/base/sounds] _REMOVE_AUDIO_ELEMENT: no sound for id: RECORDING_OFF_SOUND 04-17 01:49:42.706 30663 31230 W JitsiMeetSDK: [features/base/sounds] _REMOVE_AUDIO_ELEMENT: no sound for id: RECORDING_ON_SOUND 04-17 01:49:42.708 30663 31230 W JitsiMeetSDK: [features/calendar-sync] Calendar access not granted. 04-17 01:49:42.709 30663 31230 D JitsiMeetSDK: [modules/RTC/RTCUtils.js] Available devices: [ { kind: 'videoinput', 04-17 01:49:42.709 30663 31230 D JitsiMeetSDK: label: '0', 04-17 01:49:42.709 30663 31230 D JitsiMeetSDK: groupId: '', 04-17 01:49:42.709 30663 31230 D JitsiMeetSDK: deviceId: '0', 04-17 01:49:42.709 30663 31230 D JitsiMeetSDK: facing: 'environment' }, 04-17 01:49:42.709 30663 31230 D JitsiMeetSDK: { kind: 'videoinput', 04-17 01:49:42.709 30663 31230 D JitsiMeetSDK: label: '1', 04-17 01:49:42.709 30663 31230 D JitsiMeetSDK: groupId: '', 04-17 01:49:42.709 30663 31230 D JitsiMeetSDK: deviceId: '1', 04-17 01:49:42.709 30663 31230 D JitsiMeetSDK: facing: 'front' }, 04-17 01:49:42.709 30663 31230 D JitsiMeetSDK: { kind: 'audioinput', 04-17 01:49:42.709 30663 31230 D JitsiMeetSDK: label: 'Audio', 04-17 01:49:42.709 30663 31230 D JitsiMeetSDK: groupId: '', 04-17 01:49:42.709 30663 31230 D JitsiMeetSDK: deviceId: 'audio-1' } ]

sonywibisono commented 4 years ago

I have the same problem, during access config.js, beside I have valid domain certificate

plentypvp commented 4 years ago

Is your certificate trusted? I had this error in my Android app, but it got fixed after I generated Let's Encrypt certificate on my server.

sudo /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh

https://www.vultr.com/docs/how-to-install-jitsi-meet-on-ubuntu-18-04-lts

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ChandrakantOmn commented 3 years ago

JitsiMeetSDK: [features/base/lib-jitsi-meet] Failed to load config from url=1608695790058 Error(AbortError){"message":"Aborted","stack":"DOMException@index.android.bundle:137:6514\nonabort@index.android.bundle:137:7422\ndispatchEvent@index.android.bundle:128:5676\nvalue@index.android.bundle:123:5993\nvalue@index.android.bundle:123:5621\nl@index.android.bundle:137:6840\ndispatchEvent@index.android.bundle:146:5676\nvalue@index.android.bundle:145:1114\nindex.android.bundle:538:490\nindex.android.bundle:390:500\nvalue@index.android.bundle:49:1280\nvalue@index.android.bundle:36:3685\nindex.android.bundle:36:841\nvalue@index.android.bundle:36:2939\nvalue@index.android.bundle:36:813\nvalue@[native code]"}

I am also facing the same issue @saghul any solutions?

RaymanMartin commented 3 years ago

Failed to load config from https://videocall.com/config.js?room=1611303711953 Error(AbortError){"message":"Aborted","stack":"Error: Aborted\n at anonymous (index.android.bundle:135:6514)\n at anonymous (index.android.bundle:135:7422)\n at call (native)\n at dispatchEvent (index.android.bundle:126:5676)\n at value (index.android.bundle:121:5993)\n at value (index.android.bundle:121:5621)\n at l (index.android.bundle:135:6840)\n at call (native)\n at dispatchEvent (index.android.bundle:144:5676)\n at value (index.android.bundle:143:1114)\n at anonymous (index.android.bundle:860:490)\n at anonymous (index.android.bundle:399:500)\n at apply (native)\n at value (index.android.bundle:50:1280)\n at apply (native)\n at value (index.android.bundle:37:3685)\n at anonymous (index.android.bundle:37:841)\n at value (index.android.bundle:37:2939)\n at value (index.android.bundle:37:813)"}

Got the same problem... Is there any suggest? @saghul

That happend after some normal call between two participants.And then the receiver reject the call several times.

saghul commented 3 years ago

The timeout is 10 seconds. The AbortError means the config was not loaded in 10 seconds. This is abnormally high and we choose not to wait forever because if it took 10 seconds to load a few KB of JS, what are the chances of having a good video experience?

RaymanMartin commented 3 years ago

The timeout is 10 seconds. The AbortError means the config was not loaded in 10 seconds. This is abnormally high and we choose not to wait forever because if it took 10 seconds to load a few KB of JS, what are the chances of having a good video experience?

I got it.But this action can cause the communication error like below? Like clientA sending a voice call to clientB...But somehow they just stuck in the JitsiMeetingActivity and loading,and theres not any stream transfer in this situation...

its seem like the network is bad...Is that all right? there any suggestions to fix this problem?Thx. : )

saghul commented 3 years ago

Looks like a bad network yes. There is no solution you can apply on your side though, if there is no Internet there is not much you can do!

RaymanMartin commented 3 years ago

Looks like a bad network yes. There is no solution you can apply on your side though, if there is no Internet there is not much you can do!

So the conclusion is the lack of config.js may cause the communication process error. Ok,Thx a lot. : )

xzpfengxi commented 2 years ago

Is your certificate trusted? I had this error in my Android app, but it got fixed after I generated Let's Encrypt certificate on my server.

sudo /usr/share/jitsi-meet/scripts/install-letsencrypt-cert.sh

https://www.vultr.com/docs/how-to-install-jitsi-meet-on-ubuntu-18-04-lts

the correct answer

Mohadese267 commented 2 years ago

I have the same issue since android11 released . we're using Jitsi server so no custom configuration is applied . Is it really a bad network problem ? (current average ping: 182ms)if it's a network issue, why there is not any problem joining the meeting in browser? ! how can I apply the certificate mentioned while we're using "http://meet.jit.si"!?