Closed EGBAR closed 7 years ago
今天尝试在自己的服务器上搭建完成了wafer。 使用client-demo 作为测试。 最后调用pm2 log weapp 看到的log如下:
1|weapp | ======================================== 1|weapp | POST http://192.168.0.13:8080 => [200] { 1|weapp | "[请求]": { ··· ··· ··· 1|weapp | "[响应]": { ··· ··· ··· 1|weapp | ======================================== 1|weapp | GET /user 200 378 - 47.207 ms 1|weapp | ======================================== 1|weapp | POST http://192.168.0.13:8080 => [200] { 1|weapp | "[请求]": { 1|weapp | "[响应]": { 1|weapp | "returnCode": 0, 1|weapp | "returnMessage": "AUTH_SUCCESS", 1|weapp | "returnData": { 1|weapp | "user_info": { 1|weapp | "openId": "oAOYI------NjaE7Kbgl4", 1|weapp | "nickName": "xxxxxx", 1|weapp | "gender": 1, 1|weapp | "language": "en", 1|weapp | "city": "", 1|weapp | "province": "", 1|weapp | "country": "CN", 1|weapp | "avatarUrl": "http://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTf------------tGbUyCK2kHCxaiard0FvGn3HzfhmSAaxpsa2iad9BfzcZfo03s7U7JRvIvicEre53g/0", 1|weapp | "watermark": { 1|weapp | "timestamp": 1483467130, 1|weapp | "appid": "wxe--------ec57d" 1|weapp | } 1|weapp | } 1|weapp | }, 1|weapp | "version": 1, 1|weapp | "componentName": "MA" 1|weapp | }, 1|weapp | "[耗时]": "50ms" 1|weapp | } 1|weapp | ======================================== 1|weapp | ======================================== 1|weapp | POST https://ws.qcloud.com/get/wsurl => [200] { 1|weapp | "[请求]": { 1|weapp | "data": "{\"receiveUrl\":\"https://www.h-----ong.com/tunnel\",\"protocolType\":\"wss\"}", 1|weapp | "tcId": "cd0472f7afaff4f7ad0371b3feca9f3c", 1|weapp | "tcKey": "62aaa14292b3a65a61c14b8c30437bc648e087b2", 1|weapp | "signature": "44caf8f71c10773a92d420f86156214cf137915d" 1|weapp | }, 1|weapp | "[响应]": { 1|weapp | "code": 0, 1|weapp | "message": "OK", 1|weapp | "data": "{\"tunnelId\":\"ef1984c0b68c590b09eda622cff015515b77699c\",\"connectUrl\":\"wss://ws.qcloud.com/qcloud?tunnelId=ef1984c0b68c590b09eda622cff015515b77699c&tcId=cd0472f7afaff4f7ad0371b3feca9f3c\"}", 1|weapp | "dataEncode": "json", 1|weapp | "signature": "0b3d5df98c3de1--------2a57fad713c942bacb" 1|weapp | }, 1|weapp | "[耗时]": "155ms" 1|weapp | } 1|weapp | ======================================== 1|weapp | ======================================== 1|weapp | TunnelService [writeJsonResult] => [200] { 1|weapp | "url": "wss://ws.qcloud.com/qcloud?tunnelId=ef1984c0b68c590b09eda622cff015515b77699c&tcId=cd0472f7afaff4f7ad0371b3feca9f3c" 1|weapp | } 1|weapp | ======================================== 1|weapp | ======================================== 1|weapp | ChatTunnelHandler [onRequest] => { 1|weapp | "tunnelId": "ef1984c0b68c590b09eda622cff015515b77699c", 1|weapp | "userInfo": { 1|weapp | "openId": "oAOYI--------E7Kbgl4", 1|weapp | "nickName": "xxxxxx", 1|weapp | "gender": 1, 1|weapp | "language": "en", 1|weapp | "city": "", 1|weapp | "province": "", 1|weapp | "country": "CN", 1|weapp | "avatarUrl": "http://wx.qlogo.cn/mmopen/vi_32/Q0j4Tw--------------GbUyCK2kHCxaiard0FvGn3HzfhmSAaxpsa2iad9BfzcZfo03s7U7JRvIvicEre53g/0", 1|weapp | "watermark": { 1|weapp | "timestamp": 1483467130, 1|weapp | "appid": "wxe-----------c57d" 1|weapp | } 1|weapp | } 1|weapp | } 1|weapp | ======================================== 1|weapp | GET /tunnel 200 - - 205.310 ms
日志到这边就卡主了,也没有报错,但是demo运行不起来:
请问这个是哪里出了错,是信道服务器的问题吗? 还是我什么地方还没有配置好?
谢谢!!
已解决, 是client-demo 的问题
今天尝试在自己的服务器上搭建完成了wafer。 使用client-demo 作为测试。 最后调用pm2 log weapp 看到的log如下:
日志到这边就卡主了,也没有报错,但是demo运行不起来:
请问这个是哪里出了错,是信道服务器的问题吗? 还是我什么地方还没有配置好?
谢谢!!
已解决, 是client-demo 的问题