AgoraIO-Community / VideoUIKit-Web-React

A Web library to simply integrate Agora Video Calling or Live Video Streaming to your website with just a few lines of code.
MIT License
53 stars 44 forks source link

Error Code 102 - Logout failure. The client has already been logged out. #43

Open anwarhossain1 opened 10 months ago

anwarhossain1 commented 10 months ago

I made a custom component and I use it in my 2 user side. But getting this error.

My code block is,

` import {IAgoraCredentials} from '@/pages/lawyer/video-call'; import {Button} from '@mui/material'; import AgoraUIKit from 'agora-react-uikit'; import {useState} from 'react'; const VideoWithUIKit = ({credentials}: {credentials: IAgoraCredentials}) => { const [videoCall, setVideoCall] = useState(false); const rtcProps = { appId: credentials?.APP_ID, channel: credentials?.CHANNEL, // your agora channel token: credentials?.TOKEN, // use null or skip if using app in testing mode }; const callbacks = { EndCall: () => setVideoCall(false), }; return videoCall ? ( <div style={{display: 'flex', width: '100vw', height: '100vh'}}>

</div>

) : ( <Button onClick={() => setVideoCall(true)}>Start Call ); };

export default VideoWithUIKit;

`

Also when i leave the call by using the leave button provides by the ui kit, it gives another error,

`Unhandled Runtime Error

RtmInvalidStatusError: Error Code 102 - Logout failure. The client has already been logged out.`

AdeelCyber commented 4 months ago

I'm facing the same issue, did you find any solution?