ion-app-flutter
ion-app-flutter copied to clipboard
Can't connect to pion/ion server
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?
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
???
How to solve?
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.
modify the _channel.dart file and add onBadCertificate
