[Problem/Question]
When calling the connect function with my sendbird client, getting “there was a network error”
[SDK Version]
“@sendbird/chat”: “^4.7.1”,
“@sendbird/uikit-react”: “^3.4.5”,
[Reproduction Steps]
const sb = SendbirdChat.init({
appId: appId,
modules: [new OpenChannelModule()],
});
useEffect(() => {
const connectUser = async () => {
setLoading(true);
try {
await sb
.connect(user.id)
.then(async () => {
await enterChannel();
})
.catch((err) => {
setChatError(err);
console.log(err);
return;
});
} catch (err) {
toast({
title: err,
status: "error",
duration: 3000,
});
} finally {
setLoading(false);
}
};
connectUser();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [sb]);
[Frequency]
Everytime I try joining chat as an operator
[Current impact]
Unable to moderate my chat