team-telnyx / flutter-voice-sdk

Telnyx Flutter WebRTC SDK - Enable real-time communication with WebRTC and Telnyx
MIT License
11 stars 5 forks source link

[Bug] createCall() throws invalid argument error #12

Closed icodelifee closed 2 years ago

icodelifee commented 2 years ago

Bug Category

SDK Version telnyx_webrtc: ^0.0.3

Describe the bug While creating a call using connected Telnyx client throws Argument Error, looking into API I believe it is caused due to the #11 socket initialize error while logging with credentials, since it throws an error there, the socket id is not initialized.

Logs

I/flutter (13454): │ #0   TelnyxClient._onMessage (package:telnyx_webrtc/telnyx_client.dart:234:13)
package:telnyx_webrtc/telnyx_client.dart:234
I/flutter (13454): │ #1   TelnyxClient.connect.<anonymous closure> (package:telnyx_webrtc/telnyx_client.dart:89:9)
package:telnyx_webrtc/telnyx_client.dart:89
I/flutter (13454): │ 💡 DEBUG MESSAGE: {"jsonrpc":"2.0","id":30805,"method":"telnyx_rtc.ping","params":{"serno":1660818704}}

Screenshot 2022-08-18 at 4 04 56 PM

Oliver-Zimmerman commented 2 years ago

@icodelifee Fixed: https://github.com/team-telnyx/telnyx-webrtc-flutter/pull/14

Please test with telnyx_webrtc: ^0.0.4