jitsi / jitsi-meet-sdk-samples

Jitsi Meet mobile SDK examples (Android, iOS and React Native)
Apache License 2.0
277 stars 240 forks source link

Failed to load config #74

Closed VladimirCores closed 3 years ago

VladimirCores commented 4 years ago

Running localhost version in docker, I'm testing connection from Android application running in emulator. Only change I did is changed service IP to use my local network address - https://192.168.0.104:8443 On localhost room created and running. Press "Join" with proper room name resulted in Error and returning back to initial screen:

E/JitsiMeetSDK: [features/base/lib-jitsi-meet] Failed to load config from https://192.168.0.104:8443/config.js?room=room 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)"}
I/JitsiMeetSDK: [features/overlay] The conference will be reloaded after 13 seconds.
D/JitsiMeetSDK: ExternalAPI Sending event: CONFERENCE_TERMINATED with data: { NativeMap: {"url":"https://192.168.0.104:8443/room","error":"TypeError: Network request failed"} }
I/JitsiMeetSDK: Conference terminated: {error=TypeError: Network request failed, url=https://192.168.0.104:8443/room}
I/JitsiMeetSDK: [features/base/connection] No connection found while disconnecting.

Any ideas how I can connect to the localhost running docker image?

saghul commented 3 years ago

You need a valid TLS certificate, the self-signed one won't work on mobile.