Closed melodyiphone closed 2 years ago
请更新sdk,再行测试下。
-----初始化------ 2022-02-28 03:34:15.524�[36m [INFO] [PID:1050] [FilePath:open_im_sdk_interface.go:42] [OperationID:8305D6F3-7603-4B77-AAEA-BA766339028D] �[0m[config {"data_dir":"/var/mobile/Containers/Data/Application/CE6CECAB-B7FF-442C-B7BD-E35EF0BCB13E/Documents/","api_addr":"http://[192.168.99.252:10000](http://192.168.99.252:10000/)","ws_addr":"ws://[192.168.99.252:17778](http://192.168.99.252:17778/)","log_level":6,"object_storage":"cos","platform":1} {1 http://192.168.99.252:10000/ ws://192.168.99.252:17778 /var/mobile/Containers/Data/Application/CE6CECAB-B7FF-442C-B7BD-E35EF0BCB13E/Documents/ 6 cos}] 2022-02-28 03:34:15.524�[36m [INFO] [PID:1050] [FilePath:open_im_sdk_interface.go:44] [OperationID:8305D6F3-7603-4B77-AAEA-BA766339028D] �[0m[InitSDK {"data_dir":"/var/mobile/Containers/Data/Application/CE6CECAB-B7FF-442C-B7BD-E35EF0BCB13E/Documents/","api_addr":"http://[192.168.99.252:10000](http://192.168.99.252:10000/)","ws_addr":"ws://[192.168.99.252:17778](http://192.168.99.252:17778/)","log_level":6,"object_storage":"cos","platform":1} Open-IM-SDK-Core-v2.0.0] 2022-02-28 03:34:15.524�[36m [INFO] [PID:1050] [FilePath:init_login.go:167] [OperationID:8305D6F3-7603-4B77-AAEA-BA766339028D] �[0m[InitSDK {1 http://192.168.99.252:10000/ ws://192.168.99.252:17778 /var/mobile/Containers/Data/Application/CE6CECAB-B7FF-442C-B7BD-E35EF0BCB13E/Documents/ 6 cos}] 2022-02-28 11:34:15.524915+0800 OpenIMSDKiOS_Example[1050:449383] 初始化成功与否:1 2022-02-28 11:34:15.525037+0800 OpenIMSDKiOS_Example[1050:449383]
----- login ----- 2022-02-28 03:34:15.526�[36m [INFO] [PID:1050] [FilePath:init_login.go:96] [OperationID:973AF385-C344-450C-A8F7-F12DA6E253CA] �[0m[login start... 18010156344 eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVSUQiOiIxODAxMDE1NjM0NCIsIlBsYXRmb3JtIjoiSU9TIiwiZXhwIjoxNjQ2MTg2MjQyLCJuYmYiOjE2NDU1ODE0NDIsImlhdCI6MTY0NTU4MTQ0Mn0.z0v9JgH3_rxcKp2oioEOQFWvmTcdJ4stxKzBw5Lmnmc] 2022-02-28 03:34:15.526�[37m [DEBU] [PID:1050] [FilePath:init_login.go:250] [OperationID:973AF385-C344-450C-A8F7-F12DA6E253CA] �[0m[CheckToken 18010156344 eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVSUQiOiIxODAxMDE1NjM0NCIsIlBsYXRmb3JtIjoiSU9TIiwiZXhwIjoxNjQ2MTg2MjQyLCJuYmYiOjE2NDU1ODE0NDIsImlhdCI6MTY0NTU4MTQ0Mn0.z0v9JgH3_rxcKp2oioEOQFWvmTcdJ4stxKzBw5Lmnmc] 2022-02-28 03:34:15.527�[37m [DEBU] [PID:1050] [FilePath:user.go:134] [OperationID:973AF385-C344-450C-A8F7-F12DA6E253CA] �[0m[GetSelfUserInfoFromSvr] 2022-02-28 03:34:15.528�[31m [ERRO] [PID:1050] [FilePath:check.go:25] [OperationID:973AF385-C344-450C-A8F7-F12DA6E253CA] �[0m[checkErr operationID[973AF385-C344-450C-A8F7-F12DA6E253CA], info[==> open_im_sdk/internal/login.CheckToken()@253: GetSelfUserInfoFromSvr failed 973AF385-C344-450C-A8F7-F12DA6E253CA: ==> open_im_sdk/internal/user.(*User).GetSelfUserInfoFromSvr()@141: 973AF385-C344-450C-A8F7-F12DA6E253CA: ==> open_im_sdk/pkg/common.CheckErrAndResp()@79: api resp failed: ==> open_im_sdk/pkg/network.Post2Api()@42: post: ==> open_im_sdk/pkg/network.postLogic()@67: client.Do failed, url: Post "http://192.168.99.252:10000/user/get_self_user_info": dial tcp 192.168.99.252:10000: connect: no route to host]] 2022-02-28 11:34:15.528967+0800 OpenIMSDKiOS_Example[1050:449579]
-----login Failure -----
error msg:operationID[973AF385-C344-450C-A8F7-F12DA6E253CA], info[==> open_im_sdk/internal/login.CheckToken()@253: GetSelfUserInfoFromSvr failed 973AF385-C344-450C-A8F7-F12DA6E253CA: ==> open_im_sdk/internal/user.(*User).GetSelfUserInfoFromSvr()@141: 973AF385-C344-450C-A8F7-F12DA6E253CA: ==> open_im_sdk/pkg/common.CheckErrAndResp()@79: api resp failed: ==> open_im_sdk/pkg/network.Post2Api()@42: post: ==> open_im_sdk/pkg/network.postLogic()@67: client.Do failed, url: Post "http://192.168.99.252:10000/user/get_self_user_info": dial tcp 192.168.99.252:10000: connect: no route to host], code:702
Not working...please check the lastest code. @std-s td
error msg:operationID[ABCE5FD8-46D2-4218-87AC-166466F9DD5A], info[==> open_im_sdk/internal/login.CheckToken()@255: GetSelfUserInfoFromSvr failed ABCE5FD8-46D2-4218-87AC-166466F9DD5A: ==> open_im_sdk/internal/user.(*User).GetSelfUserInfoFromSvr()@141: ABCE5FD8-46D2-4218-87AC-166466F9DD5A: ==> open_im_sdk/pkg/common.CheckErrAndResp()@79: api resp failed: ==> open_im_sdk/pkg/network.Post2Api()@42: post: ==> open_im_sdk/pkg/network.postLogic()@70: status code failed http://121.37.25.71:10000/user/get_self_user_info: 500 Internal Server Error], code:702
Not working...please check the lastest code. @std-s td
error msg:operationID[ABCE5FD8-46D2-4218-87AC-166466F9DD5A], info[==> open_im_sdk/internal/login.CheckToken()@255: GetSelfUserInfoFromSvr failed ABCE5FD8-46D2-4218-87AC-166466F9DD5A: ==> open_im_sdk/internal/user.(*User).GetSelfUserInfoFromSvr()@141: ABCE5FD8-46D2-4218-87AC-166466F9DD5A: ==> open_im_sdk/pkg/common.CheckErrAndResp()@79: api resp failed: ==> open_im_sdk/pkg/network.Post2Api()@42: post: ==> open_im_sdk/pkg/network.postLogic()@70: status code failed http://121.37.25.71:10000/user/get_self_user_info: 500 Internal Server Error], code:702
初始化apiAdrr/wsAddr端口分别是10000 与 17778,勿动。
-----初始化------ 2022-02-28 03:34:15.524[36m [INFO] [PID:1050] [FilePath:open_im_sdk_interface.go:42] [OperationID:8305D6F3-7603-4B77-AAEA-BA766339028D] [0m[config {"data_dir":"\/var\/mobile\/Containers\/Data\/Application\/CE6CECAB-B7FF-442C-B7BD-E35EF0BCB13E\/Documents\/","api_addr":"http:\/\/192.168.99.252:10000","ws_addr":"ws:\/\/192.168.99.252:17778","log_level":6,"object_storage":"cos","platform":1} {1 http://192.168.99.252:10000/ ws://192.168.99.252:17778 /var/mobile/Containers/Data/Application/CE6CECAB-B7FF-442C-B7BD-E35EF0BCB13E/Documents/ 6 cos}] 2022-02-28 03:34:15.524[36m [INFO] [PID:1050] [FilePath:open_im_sdk_interface.go:44] [OperationID:8305D6F3-7603-4B77-AAEA-BA766339028D] [0m[InitSDK {"data_dir":"\/var\/mobile\/Containers\/Data\/Application\/CE6CECAB-B7FF-442C-B7BD-E35EF0BCB13E\/Documents\/","api_addr":"http:\/\/192.168.99.252:10000","ws_addr":"ws:\/\/192.168.99.252:17778","log_level":6,"object_storage":"cos","platform":1} Open-IM-SDK-Core-v2.0.0] 2022-02-28 03:34:15.524[36m [INFO] [PID:1050] [FilePath:init_login.go:167] [OperationID:8305D6F3-7603-4B77-AAEA-BA766339028D] [0m[InitSDK {1 http://192.168.99.252:10000/ ws://192.168.99.252:17778 /var/mobile/Containers/Data/Application/CE6CECAB-B7FF-442C-B7BD-E35EF0BCB13E/Documents/ 6 cos}] 2022-02-28 11:34:15.524915+0800 OpenIMSDKiOS_Example[1050:449383] 初始化成功与否:1 2022-02-28 11:34:15.525037+0800 OpenIMSDKiOS_Example[1050:449383]
----- login ----- 2022-02-28 03:34:15.526[36m [INFO] [PID:1050] [FilePath:init_login.go:96] [OperationID:973AF385-C344-450C-A8F7-F12DA6E253CA] [0m[login start... 18010156344 eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVSUQiOiIxODAxMDE1NjM0NCIsIlBsYXRmb3JtIjoiSU9TIiwiZXhwIjoxNjQ2MTg2MjQyLCJuYmYiOjE2NDU1ODE0NDIsImlhdCI6MTY0NTU4MTQ0Mn0.z0v9JgH3_rxcKp2oioEOQFWvmTcdJ4stxKzBw5Lmnmc] 2022-02-28 03:34:15.526[37m [DEBU] [PID:1050] [FilePath:init_login.go:250] [OperationID:973AF385-C344-450C-A8F7-F12DA6E253CA] [0m[CheckToken 18010156344 eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVSUQiOiIxODAxMDE1NjM0NCIsIlBsYXRmb3JtIjoiSU9TIiwiZXhwIjoxNjQ2MTg2MjQyLCJuYmYiOjE2NDU1ODE0NDIsImlhdCI6MTY0NTU4MTQ0Mn0.z0v9JgH3_rxcKp2oioEOQFWvmTcdJ4stxKzBw5Lmnmc] 2022-02-28 03:34:15.527[37m [DEBU] [PID:1050] [FilePath:user.go:134] [OperationID:973AF385-C344-450C-A8F7-F12DA6E253CA] [0m[GetSelfUserInfoFromSvr] 2022-02-28 03:34:15.528[31m [ERRO] [PID:1050] [FilePath:check.go:25] [OperationID:973AF385-C344-450C-A8F7-F12DA6E253CA] [0m[checkErr operationID[973AF385-C344-450C-A8F7-F12DA6E253CA], info[==> open_im_sdk/internal/login.CheckToken()@253: GetSelfUserInfoFromSvr failed 973AF385-C344-450C-A8F7-F12DA6E253CA: ==> open_im_sdk/internal/user.(*User).GetSelfUserInfoFromSvr()@141: 973AF385-C344-450C-A8F7-F12DA6E253CA: ==> open_im_sdk/pkg/common.CheckErrAndResp()@79: api resp failed: ==> open_im_sdk/pkg/network.Post2Api()@42: post: ==> open_im_sdk/pkg/network.postLogic()@67: client.Do failed, url: Post "http://192.168.99.252:10000/user/get_self_user_info": dial tcp 192.168.99.252:10000: connect: no route to host]] 2022-02-28 11:34:15.528967+0800 OpenIMSDKiOS_Example[1050:449579]
-----login Failure -----
error msg:operationID[973AF385-C344-450C-A8F7-F12DA6E253CA], info[==> open_im_sdk/internal/login.CheckToken()@253: GetSelfUserInfoFromSvr failed 973AF385-C344-450C-A8F7-F12DA6E253CA: ==> open_im_sdk/internal/user.(*User).GetSelfUserInfoFromSvr()@141: 973AF385-C344-450C-A8F7-F12DA6E253CA: ==> open_im_sdk/pkg/common.CheckErrAndResp()@79: api resp failed: ==> open_im_sdk/pkg/network.Post2Api()@42: post: ==> open_im_sdk/pkg/network.postLogic()@67: client.Do failed, url: Post "http://192.168.99.252:10000/user/get_self_user_info": dial tcp 192.168.99.252:10000: connect: no route to host], code:702