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] LateInitializationError while login using credentials #11

Closed icodelifee closed 2 years ago

icodelifee commented 2 years ago

Bug Category

SDK Version telnyx_webrtc: ^0.0.3

Describe the bug LateInitializationError: Field '_socket@742383924' has not been initialized. while connecting with Credentials

Screenshot 2022-08-18 at 12 21 05 AM Screenshot 2022-08-18 at 12 21 52 AM

To Reproduce Steps to reproduce the behaviour:

  1. e.g. (Log on with credentials)
  2. e.g. (Socket error then returned)

Device (please complete the following information):

Logs Please provide any logs available to you, remember to enable verbose logging within the SDK.

Oliver-Zimmerman commented 2 years ago

Hi @icodelifee, is this in the sample application or in your own implementation? Can you confirm the same is happening in the sample application?

I will look into this issue as well as this issue later today when I get a moment.

Regards, Oliver Zimmerman

icodelifee commented 2 years ago

Hi @icodelifee, is this in the sample application or in your own implementation? Can you confirm the same is happening in the sample application?

I will look into this issue as well as this issue later today when I get a moment.

Regards, Oliver Zimmerman

This is happening in my own implementation, i haven't checked the example app. It did work sometimes but im not able to get the audio or mic working, im not sure if the i have to do something else other than whats specified in the documentation to get the audio output and mic

icodelifee commented 2 years ago

@Oliver-Zimmerman i was able to fix this by adding a delay after connecting the client, so login happens after a small delay. But im not getting any audio while calling

Oliver-Zimmerman commented 2 years ago

Hi @icodelifee, I'm not sure why the delay is necessary. Did you have a look at the sample implementation to see if you are doing something similar?

Regardless if it is working then that's great. I will close this for now and we can discuss Audio on the other ticket