tencentyun / wafer2-quickstart-nodejs

Wafer2 Node.js 简化版 Demo
363 stars 84 forks source link

登录后去拿login信息时失败 #19

Closed dennis-ji closed 6 years ago

dennis-ji commented 6 years ago

image

11:23:27.482 response.js:20 Catch Error: Error: ERR_SKEY_INVALID at validation (/data/release/node-weapp-demo/node_modules/wafer-node-sdk/lib/auth/index.js:91:22) at validationMiddleware (/data/release/node-weapp-demo/node_modules/wafer-node-sdk/lib/auth/index.js:139:12) at dispatch (/data/release/node-weapp-demo/node_modules/koa-router/node_modules/koa-compose/index.js:44:32) at next (/data/release/node-weapp-demo/node_modules/koa-router/node_modules/koa-compose/index.js:45:18) at /data/release/node-weapp-demo/node_modules/koa-router/lib/router.js:346:16 at dispatch (/data/release/node-weapp-demo/node_modules/koa-router/node_modules/koa-compose/index.js:44:32) at /data/release/node-weapp-demo/node_modules/koa-router/node_modules/koa-compose/index.js:36:12 at dispatch (/data/release/node-weapp-demo/node_modules/koa-router/lib/router.js:351:31) at dispatch (/data/release/node-weapp-demo/node_modules/koa-compose/index.js:42:32) at parseBody.then.body (/data/release/node-weapp-demo/node_modules/koa-bodyparser/index.js:74:14) at

jas0ncn commented 6 years ago

是怎么请求的呢?

dennis-ji commented 6 years ago

使用wx.uploadFile请求的。 x-wx-key没有在header里。

jas0ncn commented 6 years ago

https://github.com/tencentyun/wafer2-client-sdk/issues/40