支付宝小程序获取openId的时候报500错误
来源:13-2 支付宝小程序用户授权
dreamJack
2020-01-07
appId:2021001105610555
code:2a80d34373a6488c870ded9574e8ZB51
Request URL:https://test.youbaobao.xyz:18081/openId/get/alipay?appId=2021001105610555&code=2a80d34373a6488c870ded9574e8ZB51
Request MethodGET
Status Code500(internal server error)
返回:
Error
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be one of type string, Buffer, or URL. Received type undefined
at Object.openSync (fs.js:443:3)
at Object.readFileSync (fs.js:351:35)
at app.get (/root/mpvue-ebook/mpvue-imooc-node/app.js:120:22)
at Layer.handle [as handle_request] (/root/mpvue-ebook/mpvue-imooc-node/node_modules/_express@4.17.1@express/lib/router/layer.js:95:5)
at next (/root/mpvue-ebook/mpvue-imooc-node/node_modules/_express@4.17.1@express/lib/router/route.js:137:13)
at Route.dispatch (/root/mpvue-ebook/mpvue-imooc-node/node_modules/_express@4.17.1@express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/root/mpvue-ebook/mpvue-imooc-node/node_modules/_express@4.17.1@express/lib/router/layer.js:95:5)
at /root/mpvue-ebook/mpvue-imooc-node/node_modules/_express@4.17.1@express/lib/router/index.js:281:22
at Function.process_params (/root/mpvue-ebook/mpvue-imooc-node/node_modules/_express@4.17.1@express/lib/router/index.js:335:12)
at next (/root/mpvue-ebook/mpvue-imooc-node/node_modules/_express@4.17.1@express/lib/router/index.js:275:10)
写回答
1回答
-
小俊001
2020-01-07
同学您好,您的问题可能是没有获取到opedId的secret参数。详细您可以参与一下教程的官网文档
http://www.youbaobao.xyz/mpvue-docs/api/
022020-01-07
相似问题