Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

TypeError: Cannot assign to read only property '_trust_audio_mute_state_' of object '#<Ho>' #137

Closed
webkoils opened this issue Apr 7, 2021 · 1 comment

Comments

@webkoils
Copy link

webkoils commented Apr 7, 2021

Describe the bug

When an audience member connects to a channel the error is thrown.
AgoraRTC_N-production.js?e671:934 Uncaught TypeError: Cannot assign to read only property 'trust_stream_added_state' of object '#'
at ag._handleAddAudioOrVideoStream (AgoraRTC_N-production.js?e671:934)
at fo.eval (AgoraRTC_N-production.js?e671:1023)
at fo.emit (AgoraRTC_N-production.js?e671:456)
at Vf.onWebsocketMessage (AgoraRTC_N-production.js?e671:534)
at Vf.emit (AgoraRTC_N-production.js?e671:456)
at WebSocket.websocket.onmessage (AgoraRTC_N-production.js?e671:530)

Also

Uncaught TypeError: Cannot assign to read only property 'trust_stream_added_state' of object '#'
at ag._handleAddAudioOrVideoStream (AgoraRTC_N-production.js:935)
at fo.eval (AgoraRTC_N-production.js:1024)
at fo.emit (AgoraRTC_N-production.js:457)
at Vf.onWebsocketMessage (AgoraRTC_N-production.js:535)
at Vf.emit (AgoraRTC_N-production.js:457)
at WebSocket.websocket.onmessage (AgoraRTC_N-production.js:531)

SDK Logs

I called enableLogUpload but i don't know where to then find the logs

Channel:
fj5vZ99QEaYUX0E6i6MH
UID:
2046
Platform and Browser:
Web/Chrome 89.0.4389.114
SDK Version:
4.4.0

To Reproduce

Join a live channel in progress

@webkoils
Copy link
Author

webkoils commented Apr 8, 2021

So after doing some more research, it seems like the state management library we are using was freezing the Remote User objects from Agora. https://github.com/facebookexperimental/Recoil
I just needed to add the dangerouslyAllowMutability: true option to the atom containing the Remote Users

@webkoils webkoils closed this as completed Apr 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant