Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Logging in after connecting telnyx causes LateInitialization error #26

Open
1 of 9 tasks
icodelifee opened this issue Oct 26, 2022 · 9 comments
Open
1 of 9 tasks
Labels
bug Something isn't working

Comments

@icodelifee
Copy link
Contributor

Bug Category

  • Credential Login
  • Token Login
  • Local Audio Issue
  • Remote Audio Issue
  • Audio Device Switching
  • Mute / Unmute
  • Hold / Unhold
  • Performance issues
  • Other

SDK Version
telnyx_webrtc: latest

Describe the bug
No, it does not occur in the example app because the example does not log in right after you connect the client. I had this issue for a long time and the workaround I did to fix it was using a delay of 4 seconds to log in after you connect the client because the connect() method is not asynchronous, but in release the delay is not really working and users are not able to automatically login into the client.
Screenshot 2022-10-26 at 4 52 44 PM

Expected behaviour
A clear and concise description of what you expected to happen.

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

@icodelifee icodelifee added the bug Something isn't working label Oct 26, 2022
@icodelifee
Copy link
Contributor Author

logs: https://katb.in/imumumesagi

@Oliver-Zimmerman Oliver-Zimmerman removed their assignment Feb 2, 2023
@mohsinnaqvi606
Copy link

Same Issue... still no solution

@icodelifee
Copy link
Contributor Author

Same Issue... still no solution

Did you try connecting after a delay?

@mohsinnaqvi606
Copy link

solved It

this error comes when you try to connect client and login simultaneously. just connect client first and after some delay try to login. there will be no error

Cheeers

@icodelifee
Copy link
Contributor Author

solved It

this error comes when you try to connect client and login simultaneously. just connect client first and after some delay try to login. there will be no error

Cheeers

Its not really a solution, its a workaround

@mohsinnaqvi606
Copy link

you can not login until client is not connected & client it will take some time to connect.
so you have to wait for client connection

@icodelifee
Copy link
Contributor Author

you can not login until client is not connected & client it will take some time to connect. so you have to wait for client connection

Yes i know that, ive been doing that ever since i opened this issue, but you might still run into connection issues, if you have a poor network or slow device.

@mohsinnaqvi606
Copy link

yes, it will be an error in that case. because there is no way to detect whether a connection is established on not.

@gada-raj
Copy link

Make the connect function Asynchronous so we can wait for it and then call the login function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

4 participants