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

getChannelAttributes raises RTM:ERROR Error Code 7 #157

Open
ogelacinyc opened this issue Oct 13, 2021 · 3 comments
Open

getChannelAttributes raises RTM:ERROR Error Code 7 #157

ogelacinyc opened this issue Oct 13, 2021 · 3 comments

Comments

@ogelacinyc
Copy link

ogelacinyc commented Oct 13, 2021

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
Copy link
Contributor

@ogelacinyc
Copy link
Author

ogelacinyc commented Oct 18, 2021

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
Copy link

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

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

3 participants