AnyChat技术支持论坛

标题: windows连接云平台的问题 [打印本页]

作者: LeY    时间: 2017-7-25 10:50
标题: windows连接云平台的问题
签名和时间戳是通过那个云平台的AnyChatSignDemo生成的,连接云服务器返回错误100,日志如下

[2017-07-25 10:49:24(317)][I]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2017-07-25 10:49:24(317)][I]        Load BRAnyChatCore.dll success!(V6.3 Build Time:May  9 2017 10:13:25)
[2017-07-25 10:49:24(348)][I]        Load BRMiscUtil.dll success!(V6.4 Build Time:May 23 2017 14:52:26)
[2017-07-25 10:49:26(060)][I]        Load BRMediaUtil.dll success!(V6.4 Build Time:May 23 2017 14:48:12)
[2017-07-25 10:49:26(076)][I]        Load BRMediaShow.dll success!(V6.4 Build Time:May 23 2017 14:52:24)
[2017-07-25 10:49:26(154)][I]        Load BRMediaCore.dll success!(V6.4 Build Time:May 23 2017 14:52:40)
[2017-07-25 10:49:26(404)][I]        Video capture device supported:
[2017-07-25 10:49:26(405)][I]                1-Integrated Camera
[2017-07-25 10:49:26(406)][I]        Audio capture device supported:
[2017-07-25 10:49:26(407)][I]                1-内装麦克风 (Conexant 20672 SmartAudi
[2017-07-25 10:49:26(410)][I]        server net link reset...
[2017-07-25 10:49:26(463)][I]        Invoke        SetSDKOption(BRAC_SO_CORESDK_SCREENCAMERACTRL=1)
[2017-07-25 10:49:26(463)][I]        Invoke        SetSDKOption(BRAC_SO_LOCALVIDEO_SCREENFLAGS=0x4)
[2017-07-25 10:49:26(463)][I]        Start network engine(IPv4 mode)...
[2017-07-25 10:49:26(463)][I]        Invoke        Connect(cloud.anychat.cn,8906)=0
[2017-07-25 10:49:26(463)][I]        Invoke        LoginEx(nickname:justtalk, userid(int):33, userid(str):, appid:ed3ce156-4524-435f-8e2d-7700854c7496)=0
[2017-07-25 10:49:26(602)][I]        Create anychatdnsserver connect:120.25.70.134(8912)
[2017-07-25 10:49:26(625)][I]        Create anychatdnsserver connect:120.76.165.13(8912)
[2017-07-25 10:49:26(672)][I]        Create anychatdnsserver connect:121.41.5.231(8912)
[2017-07-25 10:49:26(881)][I]        Success connect to anychatdnsserver(120.25.70.134:8912, tcp:0)
[2017-07-25 10:49:26(944)][I]        Receive connect parameter from anychatdnsserver!
[2017-07-25 10:49:26(944)][I]        Receive server list from anychatdnsserver(count:0):
[2017-07-25 10:49:36(680)][I]        Connect anychatdnsserver timeout, errorcode:100
[2017-07-25 10:49:36(680)][I]        Message        OnConnect(bSuccess:0, errorcode=100)
[2017-07-25 10:49:40(253)][I]        Close network engine...




要怎么解决?


作者: 佰锐-成工    时间: 2017-7-25 11:38
连接云平台服务器超时了,检查一下APPID填写是否正确
作者: LeY    时间: 2017-7-25 13:41
appid对的,我把服务器的签名有效时间延长到3600秒,还是报错
[2017-07-25 13:12:37(527)][I]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2017-07-25 13:12:37(527)][I]        Load BRAnyChatCore.dll success!(V6.3 Build Time:May  9 2017 10:13:25)
[2017-07-25 13:12:37(558)][I]        Load BRMiscUtil.dll success!(V6.4 Build Time:May 23 2017 14:52:26)
[2017-07-25 13:12:38(447)][I]        Load BRMediaUtil.dll success!(V6.4 Build Time:May 23 2017 14:48:12)
[2017-07-25 13:12:38(463)][I]        Load BRMediaShow.dll success!(V6.4 Build Time:May 23 2017 14:52:24)
[2017-07-25 13:12:38(509)][I]        Load BRMediaCore.dll success!(V6.4 Build Time:May 23 2017 14:52:40)
[2017-07-25 13:12:38(712)][I]        Video capture device supported:
[2017-07-25 13:12:38(712)][I]                1-Integrated Camera
[2017-07-25 13:12:38(728)][I]        Audio capture device supported:
[2017-07-25 13:12:38(728)][I]                1-内装麦克风 (Conexant 20672 SmartAudi
[2017-07-25 13:12:38(728)][I]        server net link reset...
[2017-07-25 13:12:38(775)][I]        Invoke        SetSDKOption(BRAC_SO_CORESDK_SCREENCAMERACTRL=1)
[2017-07-25 13:12:38(775)][I]        Invoke        SetSDKOption(BRAC_SO_LOCALVIDEO_SCREENFLAGS=0x4)
[2017-07-25 13:12:38(775)][I]        Start network engine(IPv4 mode)...
[2017-07-25 13:12:38(775)][I]        Invoke        Connect(cloud.anychat.cn,8906)=0
[2017-07-25 13:12:38(775)][I]        Invoke        LoginEx(nickname:justtalk, userid(int):33, userid(str):, appid:ed3ce156-4524-435f-8e2d-7700854c7496)=0
[2017-07-25 13:12:38(884)][I]        Create anychatdnsserver connect:120.25.70.134(8912)
[2017-07-25 13:12:38(977)][I]        Create anychatdnsserver connect:121.41.5.231(8912)
[2017-07-25 13:12:39(024)][I]        Create anychatdnsserver connect:120.76.165.13(8912)
[2017-07-25 13:12:39(326)][I]        Success connect to anychatdnsserver(120.25.70.134:8912, tcp:0)
[2017-07-25 13:12:39(388)][I]        Receive connect parameter from anychatdnsserver!
[2017-07-25 13:12:39(390)][I]        Receive server list from anychatdnsserver(count:1):
[2017-07-25 13:12:39(392)][I]                anychatcoreserver, id:-1497791984, ip:120.76.165.13(tcp:9240, udp:9240), OSinux, build Time:2017-05-24 18:42:51, version:6.4.0, serviceGuid:65941E74-06BC-7645-8B8F-583674FD1634, machineGuid:1F3E8F63-2D71-B946-B7B2-CA4CD86C920F
[2017-07-25 13:12:39(430)][I]                Create anychatcoreserver connect:10.170.161.40(9240, tcp:1)
[2017-07-25 13:12:39(441)][I]                Create anychatcoreserver connect:10.170.161.40(9240, tcp:0)
[2017-07-25 13:12:39(452)][I]                Create anychatcoreserver connect:120.76.165.13(9240, tcp:1)
[2017-07-25 13:12:39(463)][I]                Create anychatcoreserver connect:120.76.165.13(9240, tcp:0)
[2017-07-25 13:12:40(073)][I]                Trial connect anychatcoreserver(id:-1497791984) result: 120.76.165.13(9240,tcp:1), errorcode:0, avgtime:94ms
[2017-07-25 13:12:40(074)][I]        On trial connect finished, errorcode:0, result size:1, lbserver connect:0
[2017-07-25 13:12:40(075)][I]                anychatcoreserver, 120.76.165.13(9240, tcp:1), avg time:94
[2017-07-25 13:12:40(076)][I]        On best connection result, errorcode:0, ip:120.76.165.13, port:9240, tcp:1
[2017-07-25 13:12:40(077)][I]        On pre-connection result, errorcode:0, anychatcoreserver, 120.76.165.13(9240, tcp:1)
[2017-07-25 13:12:40(176)][I]        Start anychat server(120.76.165.13:9240) connect...
[2017-07-25 13:12:40(386)][I]        On connect anychat server return, errorcode: 0, appflags:0x460020, svrflags:0x10
[2017-07-25 13:12:40(480)][I]        Server version: V6.4(Build Time:2017-05-24 18:43:22, Linux server)
[2017-07-25 13:12:40(729)][I]        m_ProtocolPipeLine, userid:0, local session:-542009919, peer session:0
[2017-07-25 13:12:40(729)][I]        Send loginex request...
[2017-07-25 13:12:40(729)][I]        Message        OnConnect(bSuccess:1, errorcode=0)
[2017-07-25 13:12:40(870)][I]        Message        OnLoginSystem(userid=-1,errorcode=215,username=), msg deliver worked(1)
[2017-07-25 13:13:11(286)][I]        socket error, disconnected by peer!, bTcp(1) - userid(-1)
[2017-07-25 13:13:11(286)][E]        OnSocketClose, index(2)-errorcode(0-183), flags:0x18441, userid(-1), master connect:1, list:0

[2017-07-25 13:13:11(286)][E]        On receive server error notify, errorcode: 208
[2017-07-25 13:13:11(286)][E]        On receive server error notify, errorcode: 0
[2017-07-25 13:13:11(286)][I]        On anychat server socket link close, errorcode:0, session keep:0, login:0
[2017-07-25 13:13:13(298)][I]        Start anychat server(120.76.165.13:9240) connect...
[2017-07-25 13:13:13(470)][I]        On connect anychat server return, errorcode: 0, appflags:0x460020, svrflags:0x10
[2017-07-25 13:13:13(563)][I]        Server version: V6.4(Build Time:2017-05-24 18:43:22, Linux server)
[2017-07-25 13:13:13(813)][I]        m_ProtocolPipeLine, userid:0, local session:-542009919, peer session:0
[2017-07-25 13:13:13(813)][I]        Message        OnConnect(bSuccess:1, errorcode=0)
[2017-07-25 13:13:34(601)][E]        OnSocketClose, index(2)-errorcode(0-0), flags:0x18441, userid(-1), master connect:1, list:0
作者: 佰锐-成工    时间: 2017-7-26 09:52
你好,从日志分析,登录回调中OnLoginSystem(userid=-1,errorcode=215,username=), msg deliver worked(1),返回错误码。

#define AC_ERROR_SIGVERIFYFAIL   215                ///< 签名验证失败
作者: LeY    时间: 2017-7-28 15:31
为什么签名验证失败呢,我是直接调用你们的AnyChatSignDemo生成的签名
作者: 佰锐科技-朱哲    时间: 2017-7-28 16:21
LeY 发表于 2017-7-25 13:41
appid对的,我把服务器的签名有效时间延长到3600秒,还是报错
[2017-07-25 13:12:37(527)]        -------------- ...

[2017-07-25 13:13:11(286)][E]        On receive server error notify, errorcode: 208

除了215,还有208错误
#define AC_ERROR_NOTLOGIN                        208                ///< 没有登录

检查一下,登陆是否有问题?




欢迎光临 AnyChat技术支持论坛 (http://bbs.anychat.cn/) Powered by Discuz! X3