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

room connection failed. #44

Closed
alldev0825 opened this issue Nov 15, 2016 · 11 comments
Closed

room connection failed. #44

alldev0825 opened this issue Nov 15, 2016 · 11 comments

Comments

@alldev0825
Copy link

alldev0825 commented Nov 15, 2016

When I enter room text and click connection button, after some minutes always I failed to connect that room receiving message "Failed to connect to room with error".
I tried to know why it is happened as following:

func room(_ room: TVIRoom, didFailToConnectWithError error: Error) {
        logMessage(messageText: "Failed to connect to room with error")
        print("error=\(error)")        
        self.room = nil
        self.showRoomUI(inRoom: false)
    }

But the program is crashed in print sentence.
I received the token and am successful in showing camera preview.

@paynerc
Copy link
Contributor

paynerc commented Nov 21, 2016

Hey @alldev0825,

I'm sorry to hear that you are experiencing this crash. My assumption is that you are using the first beta. We had a known issue where, even though the API contract stated otherwise, the error object being provided was sometimes nil. We have fixed that with Beta 2 that was released last week.

So that should solve the issue with the crash. The next question is why you are failing to connect to the room? I'm concerned that the token you are generating is invalid, which is why the room is failing to connect. Would you be able to turn on verbose logging and provide so we can figure out what is going on?

To turn on verbose logging you would just need to add a call to TVIVideoClient.setLogLevel(.all). I usually do this in func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool

@Artheyn
Copy link

Artheyn commented Dec 8, 2016

Hey @paynerc,

I was facing the same issue and thanks to your message I've fixed it by upgrading the library from Beta 1 to the latest Beta (Beta 3). I think you can close this issue.

Thanks for your help and congrats for this "delightful to implement" SDK.

Keep up the good work :)
Cheers,

@paynerc
Copy link
Contributor

paynerc commented Dec 8, 2016

@Artheyn Awesome to hear that that helped you. And thanks for the kind words. We are striving to make this super easy to use while still super powerful.

Thanks again!

@ceaglest
Copy link
Contributor

Closing this issue, since it has been reported as resolved in beta3.

@xiaogui3600
Copy link

I am facing this issue

@JiyarMahmod
Copy link

iam facing the same issue...

@ceaglest
Copy link
Contributor

Hi @JiyarMahmod, @XiaoGuiDeveloper,

This is a very old issue and since our 1.0 betas we've changed to signaling over TLS/443. If you're still having problems with a newer version of the SDK, would you mind opening another issue and letting us know what devices/sdk version/region you are in?

Best,
Chris

@JiyarMahmod
Copy link

@ceaglest tank You for responding so Quick, iam using version 2.4 i installed it today using cocapods so it autmaticly downloaded The latest version everything works fine iam getting The token key and all but The problem accours when i join The room then i get this error

@ceaglest
Copy link
Contributor

Okay @JiyarMahmod lets discuss this further. Can you please create a new issue?

https://github.com/twilio/video-quickstart-swift/issues/new

@JiyarMahmod
Copy link

I Will create this New issue as soon as i get of work so in 1h or so thank You for trying to help i Will let You know when i have create this New issue thanks @ceaglest

@JiyarMahmod
Copy link

@ceaglest hi there i hope this is enough information but here is the thread #304 just comment if you need some more information or if you have the solution. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants