openimsdk / open-im-flutter-demo

Demo developed based on flutter open IM SDK.
https://openim.io
Apache License 2.0
310 stars 208 forks source link

Unable to log out, getting an error when attempting to do so #75

Closed DoraemonQiu closed 1 year ago

DoraemonQiu commented 1 year ago

调用OpenIM.iMManager.logout()方法,无法退出登录,控制台输出内容:[ERRO] [PID:3181] [FilePath:ws.go:68] [OperationID:1681287190874] [ws ch recvMsg err, timeout];抛出的异常:PlatformException(100, recv timeout, conn same, null, null)

CatEatFishs commented 1 year ago

我也遇到相同问题了 Future logout() { return OpenIM.iMManager.logout().then((value) { userInfo = null; }); }

image
DoraemonQiu commented 1 year ago

我这个问题后来发现是由于前端和后端用的SDK版本不同导致的,可以检查哈对应版本