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

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

Open
anwarhossain1 opened this issue Nov 12, 2023 · 1 comment

Comments

@anwarhossain1
Copy link

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'}}>


) : (
<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
Copy link

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

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

2 participants