ion-app-flutter icon indicating copy to clipboard operation
ion-app-flutter copied to clipboard

Can't connect to pion/ion server

Open WeibinDai opened this issue 3 years ago • 3 comments

Your environment.

  • Version: master latest branch
  • Browser: Chrome 94.0.4606.54 (Official Build) (64-bit)
  • Other Information - pion/ion also is latest master which deployed on the public network server, I also enable cert and key values in signal.toml

What did you expect?

Connect to ion server by using ion-app-flutter. Maybe Certificate or key should been added in a file?

WeibinDai avatar Dec 01 '21 03:12 WeibinDai

Yes, I have the same problem. From the flutter application it is not possible to connect from the servers. From the flutter side there is no problem.When I trying to enter a room in the flutter log I see next: I/flutter (15229): IonController setup I/flutter (15229): IonController setup ok I/flutter (15229): IonController connect() I/flutter (15229): joinROOM sid=test-one uid=eab442f0-5bbd-4e88-a9b7-af45f879a22b D/Surface (15229): Surface::disconnect(this=0x7c69ef1000,api=1) E/ion (15229): ioctl c0044901 failed with code -1: Invalid argume ion_local_flutter ion_local ??? How to solve?

andim27 avatar Dec 06 '21 12:12 andim27

I solve my problem. The reason is gRPC connection failed. My ion server has set TLS, so the app also need a certification. I modify the _channel.dart in package flutter_ion-1.0.0, and set “onBadCertificate“ true, that will do.

WeibinDai avatar Dec 13 '21 03:12 WeibinDai

modify the _channel.dart file and add onBadCertificate image

LJNiklaus avatar Jul 12 '22 10:07 LJNiklaus