AgoraIO / RTM

143 stars 160 forks source link

getChannelAttributes raises RTM:ERROR Error Code 7 #157

Open ogelacinyc opened 2 years ago

ogelacinyc commented 2 years ago

After logging in as user A, before creating a channel, call getChannelAttributes to get the attributes of channel B and create channel B. After that, if I call getChannelAttributes to get attributes for channel C after a few seconds, I get the following error:

RTM:ERROR Error Code 7: getChannelAttributes failed with args: channelC. +0ms
index.js:1 RtmTimeoutError: Error Code 7 - Request timed out after 10000s.

If you call getChannelAttributes multiple times with the same channel, there is no problem. Can you tell me what is causing these errors? The documentation says getChannelAttributes can do 10 calls every five seconds. Increasing the interval between calls to getChannelAttributes by more than 5 seconds causes the same problem.

Could there be more constraints on getChannelAttributes that are not documented?

I'm using agora-rtc-sdk-ng 4.4.0, agora-rtm-sdk 1.4.1 for Web as free plan.

I tested all browsers.

yoreland commented 2 years ago

https://docs.agora.io/en/Real-time-Messaging/API%20Reference/RTM_web/enums/rtmerrorcode.attributeoperationerror.html#attribute_operation_err_timeout Can you please confirm the user is logged in and network status is normal?

ogelacinyc commented 2 years ago

Yes. I confirmed the user's status is normal and logged. I have double checked before send getChannelAttribute and after send it. After a few minutes of getting this error, I should be able to get a normal response. And other API can be called like join room, create room. After leaving the channel, I see the following log: Is this part the problem?

10:52:01:631 Agora-SDK [INFO]: [client-51d7b] Leaving channel
10:52:01:641 Agora-SDK [INFO]: [client-51d7b] connection state change: CONNECTED -> DISCONNECTING
10:52:01:681 Agora-SDK [DEBUG]: [signal] websocket closed, reason: LEAVE
10:52:01:682 Agora-SDK [INFO]: [client-51d7b] connection state change: DISCONNECTING -> DISCONNECTED
hamzaakrammogul2 commented 4 months ago

RTM:ERROR Error Code 6: getUserAttributes failed with args: i am getting the same issue but with user attributes