flutter-webrtc / flutter-webrtc-demo

Demo for flutter-webrtc
MIT License
1.15k stars 417 forks source link

Closed by server [1006 => ]! #119

Open ggsant opened 3 years ago

ggsant commented 3 years ago

when I insert a link I get this error Closed by server [1006 =>]!

I take the opportunity to ask if it is possible to transmit images from a security camera via flutter_webrtc to the web, and how do I do this? In the demo it is not clear how to connect a camera other than a web can or cell phone camera.

Lukas2019 commented 3 years ago

Hi, I have the same Problem ( 'Closed by server [1006 =>]!' ) but only when I try to use it as Web app. Not sure what this Error means.

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.

mustafaboleken commented 3 years ago

same

mayaparamita commented 3 years ago

I tried to run this on web (chrome) it worked at first. But on the second time and so on, everytime I tried it it shows this error:

connect to https://demo.cloudwebrtc.com:8086/ws
Closed by server [1006 => ]!

It hasn't worked and still showing that error since then

Shanki070 commented 3 years ago

Getting the same issue.

ycherniavskyi commented 3 years ago

As I remembered I got this error when used Nginx as WebScocket proxy and it closed WebScocket connections by timeout.

eugenioamato commented 2 years ago

The demo works on Android, but I receive this error only on Flutter web

Configured with demo.cloudwebrtc.com When clicking 'P2P Call sample" Chrome console shows:

browser_client.dart:72 GET https://demo.cloudwebrtc.com:8086/api/turn?service=turn&username=flutter-webrtc net::ERR_CERT_DATE_INVALID

html_dart2js.dart:31744 WebSocket connection to 'wss://demo.cloudwebrtc.com:8086/ws' failed: Error in connection establishment: net::ERR_CERT_DATE_INVALID
js_primitives.dart:30 Closed by server [1006 => ]!
mayaparamita commented 2 years ago

I tried to run this on web (chrome) it worked at first. But on the second time and so on, everytime I tried it it shows this error:

connect to https://demo.cloudwebrtc.com:8086/ws
Closed by server [1006 => ]!

It hasn't worked and still showing that error since then

Hi guys, I found that when i copy paste the browser link from browser who automatically open when I click run on android studio and paste it to another browser it automatically works. Hope it helps

kakon007 commented 2 years ago

Still getting the same issue.

kakon007 commented 2 years ago

I've solved this issue in this way- Firstly, run this command in Your Server Machine- mkcert -key-file configs/certs/key.pem -cert-file configs/certs/cert.pem localhost 127.0.0.1 ::1 0.0.0.0 Secondly, run this command in Your Server Machine- mkcert --install

Androidsignal commented 1 year ago

Same issue any updates ?

gev commented 1 year ago

Same issue any updates ?

Aha! The reason is that the demo.cloudwebrtc.com certificate has expired:

Issued On   Thursday, July 14, 2022 at 4:42:23 AM
Expires On  Wednesday, October 12, 2022 at 4:42:22 AM

Create a new issue https://github.com/flutter-webrtc/flutter-webrtc-demo/issues/207

basharalbashier commented 7 months ago

Still having the same issue, even though I have certificate already installed