Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Agora RTM login getting a timeout error code 9?

I am trying to log users into RTM in Swift and keep running into a timeout error when trying to login to RTM. RTC works fine and my tokens from the token server come quick and are valid. What else could be causing this?

  self.rtmKit?.login(byToken: self.tempToken[1], user: self.userForRTM) { (error) in
        if error != .ok {
            print("Error logging in: ", error.rawValue)
        } else {
            self.rtmChannel = self.rtmKit?.createChannel(withId: self.userName, delegate: self) //This is the AgoraRtmChannelDelegate, which must be set to get messageReceived, memberLeft, and memberJoined callbacks.
            self.rtmChannel?.join(completion: { (error) in
                if error != .channelErrorOk {
                    print("Error joining channel: ", error.rawValue)
                }
            })
        }
    }
like image 383
Ashton Avatar asked Jul 08 '26 07:07

Ashton


1 Answers

It could be a firewall error, which I've seen only a couple of times.

Could you try leaving the wifi connection if you are on one, and also trying on wifi if you're not already?


Edit:

We have identified the issue as likely a problem with IPv6 compatibility. There is a temporary fix here:

https://github.com/AgoraIO/AgoraRTM_iOS/releases/tag/1.4.8-230

The fix will be included in our next RTM release.

like image 162
maxxfrazer Avatar answered Jul 11 '26 15:07

maxxfrazer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!