tencentyun / wafer-client-demo

Wafer - 企业级微信小程序全栈方案
https://github.com/tencentyun/wafer
Other
506 stars 206 forks source link

信道服务测试失败——签名校验失败 #4

Open sela0629 opened 7 years ago

sela0629 commented 7 years ago

index.js [sm]:155 信道发生错误: Object {code: 1001, message: "连接信道服务失败,网络错误或者信道服务没有正确响应", detail: Object}code: 1001detail: Objectmessage: "连接信道服务失败,网络错误或者信道服务没有正确响应"proto: Object(anonymous function) @ index.js [sm]:155(anonymous function) @ tunnel.js [sm]:119dispatchEvent @ tunnel.js [sm]:112dispatchConnectServiceError @ tunnel.js [sm]:170success @ tunnel.js [sm]:159callSuccess @ request.js [sm]:50success @ request.js [sm]:110(anonymous function) @ WAService.js:3(anonymous function) @ WAService.js:4(anonymous function) @ asdebug.js:1(anonymous function) @ WAService.js:3

按配置流程其他的都测试ok,但是websocket信道服务测试失败,报签名校验失败

{\"error\":\"签名校验失败\"}","statusCode":200}}

stev-gd commented 7 years ago

{"code":1001,"message":"连接信道服务失败,网络错误或者信道服务没有正确响应","detail":{"errMsg":"request:ok","data":"\n<div style=\"border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;\">\n\n

A PHP Error was encountered

\n\n

Severity: Notice

\n

Message: Undefined index: signature

\n

Filename: Tunnel/TunnelService.php

\n

Line Number: 94

\n\n\n\t

Backtrace:

\n\t\n\t\t\n\t\n\t\t\n\t\n\t\t\n\t\t\t<p style=\"margin-left:10px\">\n\t\t\tFile: /data/release/php-weapp-demo/vendor/qcloud/weapp-sdk/lib/Tunnel/TunnelService.php
\n\t\t\tLine: 94
\n\t\t\tFunction: _error_handler\t\t\t

\n\n\t\t\n\t\n\t\t\n\t\t\t<p style=\"margin-left:10px\">\n\t\t\tFile: /data/release/php-weapp-demo/vendor/qcloud/weapp-sdk/lib/Tunnel/TunnelService.php
\n\t\t\tLine: 17
\n\t\t\tFunction: handleGet\t\t\t

\n\n\t\t\n\t\n\t\t\n\t\t\t<p style=\"margin-left:10px\">\n\t\t\tFile: /data/release/php-weapp-demo/application/controllers/Tunnel.php
\n\t\t\tLine: 11
\n\t\t\tFunction: handle\t\t\t

\n\n\t\t\n\t\n\t\t\n\t\n\t\t\n\t\n\t\t\n\t\t\t<p style=\"margin-left:10px\">\n\t\t\tFile: /data/release/php-weapp-demo/index.php
\n\t\t\tLine: 328
\n\t\t\tFunction: require_once\t\t\t

\n\n\t\t\n\t\n\n
\n<div style=\"border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;\">\n\n

A PHP Error was encountered

\n\n

Severity: Notice

\n

Message: Array to string conversion

\n

Filename: Tunnel/Signature.php

\n

Line Number: 11

\n\n\n\t

Backtrace:

\n\t\n\t\t\n\t\n\t\t\n\t\n\t\t\n\t\t\t<p style=\"margin-left:10px\">\n\t\t\tFile: /data/release/php-weapp-demo/vendor/qcloud/weapp-sdk/lib/Tunnel/Signature.php
\n\t\t\tLine: 11
\n\t\t\tFunction: _error_handler\t\t\t

\n\n\t\t\n\t\n\t\t\n\t\t\t<p style=\"margin-left:10px\">\n\t\t\tFile: /data/release/php-weapp-demo/vendor/qcloud/weapp-sdk/lib/Tunnel/Signature.php
\n\t\t\tLine: 23
\n\t\t\tFunction: compute\t\t\t

\n\n\t\t\n\t\n\t\t\n\t\t\t<p style=\"margin-left:10px\">\n\t\t\tFile: /data/release/php-weapp-demo/vendor/qcloud/weapp-sdk/lib/Tunnel/TunnelService.php
\n\t\t\tLine: 97
\n\t\t\tFunction: check\t\t\t

\n\n\t\t\n\t\n\t\t\n\t\t\t<p style=\"margin-left:10px\">\n\t\t\tFile: /data/release/php-weapp-demo/vendor/qcloud/weapp-sdk/lib/Tunnel/TunnelService.php
\n\t\t\tLine: 17
\n\t\t\tFunction: handleGet\t\t\t

\n\n\t\t\n\t\n\t\t\n\t\t\t<p style=\"margin-left:10px\">\n\t\t\tFile: /data/release/php-weapp-demo/application/controllers/Tunnel.php
\n\t\t\tLine: 11
\n\t\t\tFunction: handle\t\t\t

\n\n\t\t\n\t\n\t\t\n\t\n\t\t\n\t\n\t\t\n\t\t\t<p style=\"margin-left:10px\">\n\t\t\tFile: /data/release/php-weapp-demo/index.php
\n\t\t\tLine: 328
\n\t\t\tFunction: require_once\t\t\t

\n\n\t\t\n\t\n\n
{\"error\":\"签名校验失败\"}","statusCode":200}}

samuala commented 6 years ago

我也出现类似错误