Open zoujiaqing opened 1 month ago
3.8.1
Linux (AMD)
Docker Deployment
uniapp app 登录不好使,日志我发出来看一下:
INFO [2024-10-11 22:04:40.884] [ws_server.go:60] msg="http的headers Authorization中没有对应token" INFO [2024-10-11 22:04:40.884] [ws_server.go:62] msg="token info" token="" url is: / EROR [2024-10-11 22:04:40.884] [ws_server.go:77] msg="test1" EROR [2024-10-11 22:04:40.884] [ws_server.go:87] msg="test2" EROR [2024-10-11 22:04:40.884] [ws_server.go:94] msg="test3" EROR [2024-10-11 22:04:40.884] [ws_server.go:98] msg="test4" EROR [2024-10-11 22:04:40.884] [ws_conn.go:30] msg="test4.1" LOG15_ERROR="" LOG15_ERROR="Normalized odd number of arguments by adding nil" EROR [2024-10-11 22:04:40.885] [ws_conn.go:34] msg="test4.1.1" LOG15_ERROR="" LOG15_ERROR="Normalized odd number of arguments by adding nil" EROR [2024-10-11 22:04:40.885] [ws_conn.go:38] msg="test4.1.2" LOG15_ERROR="" LOG15_ERROR="Normalized odd number of arguments by adding nil" EROR [2024-10-11 22:04:40.885] [ws_conn.go:41] msg="test4.1.3" LOG15_ERROR="" LOG15_ERROR="Normalized odd number of arguments by adding nil" EROR [2024-10-11 22:04:40.885] [ws_conn.go:45] msg="test4.2" EROR [2024-10-11 22:04:40.885] [ws_conn.go:76] msg="test4.3" EROR [2024-10-11 22:04:40.885] [ws_server.go:100] msg="tes5" INFO [2024-10-11 22:04:40.885] [netmodule.go:35] msg="one ws connect" sessionId="" INFO [2024-10-11 22:04:40.885] [netmodule.go:47] msg="checkToken info" param={"UrlPath":"/?sendID=6432103258\u0026token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiI2NDMyMTAzMjU4IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNzM2NDMxNDgwLCJuYmYiOjE3Mjg2NTUxODAsImlhdCI6MTcyODY1NTQ4MH0.sMJ2j8bnFNJejj1xeS9XItv_a3K-MjuIBFKC24YEkSw\u0026platformID=5\u0026operationID=btj5wto6a1728655479906","Token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiI2NDMyMTAzMjU4IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNzM2NDMxNDgwLCJuYmYiOjE3Mjg2NTUxODAsImlhdCI6MTcyODY1NTQ4MH0.sMJ2j8bnFNJejj1xeS9XItv_a3K-MjuIBFKC24YEkSw","SessionId":"","UserId":0,"GroupId":0,"OrgId":0,"OrgName":""} err=nil NewJsCore data= sessionId InitSDK data= 5 btj5wto6a1728655479906 INFO [2024-10-11 22:04:40.887] [netmodule.go:68] msg="one linked" param={"UrlPath":"/?sendID=6432103258\u0026token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiI2NDMyMTAzMjU4IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNzM2NDMxNDgwLCJuYmYiOjE3Mjg2NTUxODAsImlhdCI6MTcyODY1NTQ4MH0.sMJ2j8bnFNJejj1xeS9XItv_a3K-MjuIBFKC24YEkSw\u0026platformID=5\u0026operationID=btj5wto6a1728655479906","Token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiI2NDMyMTAzMjU4IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNzM2NDMxNDgwLCJuYmYiOjE3Mjg2NTUxODAsImlhdCI6MTcyODY1NTQ4MH0.sMJ2j8bnFNJejj1xeS9XItv_a3K-MjuIBFKC24YEkSw","SessionId":"","UserId":0,"GroupId":0,"OrgId":0,"OrgName":""} sessionId="" INFO [2024-10-11 22:04:41.371] [MActor.go:183] msg="message come here" data={"MsgType":1,"Msg":"eyJkYXRhIjoiW1wiNjQzMjEwMzI1OFwiLFwiZXlKaGJHY2lPaUpJVXpJMU5pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SlZjMlZ5U1VRaU9pSTJORE15TVRBek1qVTRJaXdpVUd4aGRHWnZjbTFKUkNJNk5Td2laWGh3SWpveE56TTJORE14TkRnd0xDSnVZbVlpT2pFM01qZzJOVFV4T0RBc0ltbGhkQ0k2TVRjeU9EWTFOVFE0TUgwLnNNSjJqOGJuRk5KZWpqMXhlUzlYSXR2X2EzSy1NanVJQkZLQzI0WUVrU3dcIl0iLCJvcGVyYXRpb25JRCI6ImJ0ajV3dG82YTE3Mjg2NTU0Nzk5MDYiLCJ1c2VySUQiOiI2NDMyMTAzMjU4IiwicmVxRnVuY05hbWUiOiJMb2dpbiJ9"} INFO [2024-10-11 22:04:41.372] [MActor.go:193] msg="receive req" req={"reqFuncName":"Login","operationID":"btj5wto6a1728655479906","data":"[\"6432103258\",\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiI2NDMyMTAzMjU4IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNzM2NDMxNDgwLCJuYmYiOjE3Mjg2NTUxODAsImlhdCI6MTcyODY1NTQ4MH0.sMJ2j8bnFNJejj1xeS9XItv_a3K-MjuIBFKC24YEkSw\"]","userID":"6432103258","batchMsg":0} sessionId="" method is valid data= &{Login btj5wto6a1728655479906 ["6432103258","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiI2NDMyMTAzMjU4IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNzM2NDMxNDgwLCJuYmYiOjE3Mjg2NTUxODAsImlhdCI6MTcyODY1NTQ4MH0.sMJ2j8bnFNJejj1xeS9XItv_a3K-MjuIBFKC24YEkSw"] 6432103258 0} EROR [2024-10-11 22:04:41.375] [responder.go:31] msg="sendOnErrorResp" operationID="btj5wto6a1728655479906" event="Login" err="init database ==> github.com/openimsdk/openim-sdk-core/v3/pkg/db.NewDataBase()@88: initDB failed /data/apps/openim-docker: ==> github.com/openimsdk/openim-sdk-core/v3/pkg/db.(*DataBase).initDB()@116: open db failed /data/apps/openim-docker/OpenIM_v3_6432103258.db: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub: 10006 SdkInternalError" INFO [2024-10-11 22:05:08.657] [ws_server.go:60] msg="http的headers Authorization中没有对应token" INFO [2024-10-11 22:05:08.657] [ws_server.go:62] msg="token info" token="" url is: / EROR [2024-10-11 22:05:08.657] [ws_server.go:77] msg="test1" EROR [2024-10-11 22:05:08.657] [ws_server.go:87] msg="test2" EROR [2024-10-11 22:05:08.657] [ws_server.go:94] msg="test3" EROR [2024-10-11 22:05:08.657] [ws_server.go:98] msg="test4" EROR [2024-10-11 22:05:08.657] [ws_conn.go:30] msg="test4.1" LOG15_ERROR="" LOG15_ERROR="Normalized odd number of arguments by adding nil" EROR [2024-10-11 22:05:08.657] [ws_conn.go:34] msg="test4.1.1" LOG15_ERROR="" LOG15_ERROR="Normalized odd number of arguments by adding nil" EROR [2024-10-11 22:05:08.657] [ws_conn.go:38] msg="test4.1.2" LOG15_ERROR="" LOG15_ERROR="Normalized odd number of arguments by adding nil" EROR [2024-10-11 22:05:08.657] [ws_conn.go:41] msg="test4.1.3" LOG15_ERROR="" LOG15_ERROR="Normalized odd number of arguments by adding nil" EROR [2024-10-11 22:05:08.657] [ws_conn.go:45] msg="test4.2" EROR [2024-10-11 22:05:08.657] [ws_conn.go:76] msg="test4.3" EROR [2024-10-11 22:05:08.657] [ws_server.go:100] msg="tes5" INFO [2024-10-11 22:05:08.657] [netmodule.go:35] msg="one ws connect" sessionId="" INFO [2024-10-11 22:05:08.657] [netmodule.go:47] msg="checkToken info" param={"UrlPath":"/?sendID=6432103258\u0026token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiI2NDMyMTAzMjU4IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNzM2NDMxNTA3LCJuYmYiOjE3Mjg2NTUyMDcsImlhdCI6MTcyODY1NTUwN30.e5rU2ZxTy27zAVNuxh1k1zKAmDkMMa6UhFZdDZj701c\u0026platformID=5\u0026operationID=xhmnnsfmyh1728655507375","Token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiI2NDMyMTAzMjU4IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNzM2NDMxNTA3LCJuYmYiOjE3Mjg2NTUyMDcsImlhdCI6MTcyODY1NTUwN30.e5rU2ZxTy27zAVNuxh1k1zKAmDkMMa6UhFZdDZj701c","SessionId":"","UserId":0,"GroupId":0,"OrgId":0,"OrgName":""} err=nil NewJsCore data= sessionId InitSDK data= 5 xhmnnsfmyh1728655507375 INFO [2024-10-11 22:05:08.658] [MActor.go:151] msg="get ReleaseRes sign" INFO [2024-10-11 22:05:08.658] [MActor.go:121] msg="收到释放资源通道消息" INFO [2024-10-11 22:05:08.658] [gate.go:123] msg="read message error" error="read tcp 38.60.198.194:10003->23.145.24.202:44635: use of closed network connection" INFO [2024-10-11 22:05:08.658] [MActor.go:160] msg="通过releaseRes接口回收资源" INFO [2024-10-11 22:05:08.658] [netmodule.go:68] msg="one linked" param={"UrlPath":"/?sendID=6432103258\u0026token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiI2NDMyMTAzMjU4IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNzM2NDMxNTA3LCJuYmYiOjE3Mjg2NTUyMDcsImlhdCI6MTcyODY1NTUwN30.e5rU2ZxTy27zAVNuxh1k1zKAmDkMMa6UhFZdDZj701c\u0026platformID=5\u0026operationID=xhmnnsfmyh1728655507375","Token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiI2NDMyMTAzMjU4IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNzM2NDMxNTA3LCJuYmYiOjE3Mjg2NTUyMDcsImlhdCI6MTcyODY1NTUwN30.e5rU2ZxTy27zAVNuxh1k1zKAmDkMMa6UhFZdDZj701c","SessionId":"","UserId":0,"GroupId":0,"OrgId":0,"OrgName":""} sessionId="" EROR [2024-10-11 22:05:08.658] [responder.go:31] msg="sendOnErrorResp" operationID="js sdk socket close" event="Logout" err="not load resource: 10004 ResourceLoadNotCompleteError" INFO [2024-10-11 22:05:08.658] [MActor.go:111] msg="收到退出信号" sessionId="" INFO [2024-10-11 22:05:08.658] [MActor.go:168] msg="退出MQPushActorIm" sessionId="" INFO [2024-10-11 22:05:08.658] [netmodule.go:84] msg="one dislinkder" sessionId="" INFO [2024-10-11 22:05:08.925] [MActor.go:183] msg="message come here" data={"MsgType":1,"Msg":"eyJkYXRhIjoiW1wiNjQzMjEwMzI1OFwiLFwiZXlKaGJHY2lPaUpJVXpJMU5pSXNJblI1Y0NJNklrcFhWQ0o5LmV5SlZjMlZ5U1VRaU9pSTJORE15TVRBek1qVTRJaXdpVUd4aGRHWnZjbTFKUkNJNk5Td2laWGh3SWpveE56TTJORE14TlRBM0xDSnVZbVlpT2pFM01qZzJOVFV5TURjc0ltbGhkQ0k2TVRjeU9EWTFOVFV3TjMwLmU1clUyWnhUeTI3ekFWTnV4aDFrMXpLQW1Ea01NYTZVaEZaZERaajcwMWNcIl0iLCJvcGVyYXRpb25JRCI6InhobW5uc2ZteWgxNzI4NjU1NTA3Mzc1IiwidXNlcklEIjoiNjQzMjEwMzI1OCIsInJlcUZ1bmNOYW1lIjoiTG9naW4ifQ=="} INFO [2024-10-11 22:05:08.925] [MActor.go:193] msg="receive req" req={"reqFuncName":"Login","operationID":"xhmnnsfmyh1728655507375","data":"[\"6432103258\",\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiI2NDMyMTAzMjU4IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNzM2NDMxNTA3LCJuYmYiOjE3Mjg2NTUyMDcsImlhdCI6MTcyODY1NTUwN30.e5rU2ZxTy27zAVNuxh1k1zKAmDkMMa6UhFZdDZj701c\"]","userID":"6432103258","batchMsg":0} sessionId="" method is valid data= &{Login xhmnnsfmyh1728655507375 ["6432103258","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySUQiOiI2NDMyMTAzMjU4IiwiUGxhdGZvcm1JRCI6NSwiZXhwIjoxNzM2NDMxNTA3LCJuYmYiOjE3Mjg2NTUyMDcsImlhdCI6MTcyODY1NTUwN30.e5rU2ZxTy27zAVNuxh1k1zKAmDkMMa6UhFZdDZj701c"] 6432103258 0} EROR [2024-10-11 22:05:08.926] [responder.go:31] msg="sendOnErrorResp" operationID="xhmnnsfmyh1728655507375" event="Login" err="init database ==> github.com/openimsdk/openim-sdk-core/v3/pkg/db.NewDataBase()@88: initDB failed /data/apps/openim-docker: ==> github.com/openimsdk/openim-sdk-core/v3/pkg/db.(*DataBase).initDB()@116: open db failed /data/apps/openim-docker/OpenIM_v3_6432103258.db: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub: 10006 SdkInternalError" INFO [2024-10-11 22:05:36.675] [ws_conn.go:57] msg="ping message" b={"MsgType":9,"Msg":null} INFO [2024-10-11 22:05:36.950] [ws_server.go:74] msg="js replying with a pong packet." INFO [2024-10-11 22:05:51.792] [MActor.go:183] msg="message come here" data={"MsgType":1,"Msg":"eyJkYXRhIjoiW3RydWVdIiwib3BlcmF0aW9uSUQiOiJwbm94Ymt0M2kxNzI4NjU1NTUxMjIyIiwidXNlcklEIjoiNjQzMjEwMzI1OCIsInJlcUZ1bmNOYW1lIjoiU2V0QXBwQmFja2dyb3VuZFN0YXR1cyJ9"} INFO [2024-10-11 22:05:51.793] [MActor.go:193] msg="receive req" req={"reqFuncName":"SetAppBackgroundStatus","operationID":"pnoxbkt3i1728655551222","data":"[true]","userID":"6432103258","batchMsg":0} sessionId="" method is valid data= &{SetAppBackgroundStatus pnoxbkt3i1728655551222 [true] 6432103258 0} EROR [2024-10-11 22:05:51.793] [responder.go:31] msg="sendOnErrorResp" operationID="pnoxbkt3i1728655551222" event="SetAppBackgroundStatus" err="not load resource: 10004 ResourceLoadNotCompleteError" INFO [2024-10-11 22:06:04.669] [ws_conn.go:57] msg="ping message" b={"MsgType":9,"Msg":null} INFO [2024-10-11 22:06:06.951] [gate.go:123] msg="read message error" error="read tcp 38.60.198.194:10003->23.145.24.202:53179: i/o timeout" INFO [2024-10-11 22:06:06.951] [MActor.go:111] msg="收到退出信号" sessionId="" INFO [2024-10-11 22:06:06.951] [MActor.go:168] msg="退出MQPushActorIm" sessionId="" INFO [2024-10-11 22:06:06.951] [netmodule.go:84] msg="one dislinkder" sessionId="" EROR [2024-10-11 22:06:06.952] [responder.go:31] msg="sendOnErrorResp" operationID="js sdk socket close" event="Logout" err="not load resource: 10004 ResourceLoadNotCompleteError"
配置文件
openimApi: "http://127.0.0.1:10002" openimWs: "ws://127.0.0.1:10001" sdkWsPort: [ 10003 ] dbDir: "/data/apps/openim-docker"
No response
You can introduce @openim/client-sdk to directly communicate with IM Server(v3.8.2+) without the need to deploy this project.
OpenIM Server Version
3.8.1
Operating System and CPU Architecture
Linux (AMD)
Deployment Method
Docker Deployment
Bug Description and Steps to Reproduce
uniapp app 登录不好使,日志我发出来看一下:
配置文件
Screenshots Link
No response