TypeError: Cannot read property 'accessToken' of undefined
来源:3-5 Cnode API代理实现

suattoptang
2018-05-19
<body>
<pre>TypeError: Cannot read property 'accessToken' of undefined
<br> at module.exports (/Users/suattop/Desktop/hashapp/server/util/proxy.js:24:25)
<br> at Layer.handle [as handle_request] (/Users/suattop/Desktop/hashapp/node_modules/express/lib/router/layer.js:95:5)
<br> at trim_prefix (/Users/suattop/Desktop/hashapp/node_modules/express/lib/router/index.js:317:13)
<br> at /Users/suattop/Desktop/hashapp/node_modules/express/lib/router/index.js:284:7
<br> at Function.process_params (/Users/suattop/Desktop/hashapp/node_modules/express/lib/router/index.js:335:12)
<br> at next (/Users/suattop/Desktop/hashapp/node_modules/express/lib/router/index.js:275:10)
<br> at favicon (/Users/suattop/Desktop/hashapp/node_modules/serve-favicon/index.js:68:7)
<br> at Layer.handle [as handle_request] (/Users/suattop/Desktop/hashapp/node_modules/express/lib/router/layer.js:95:5)
<br> at trim_prefix (/Users/suattop/Desktop/hashapp/node_modules/express/lib/router/index.js:317:13)
<br> at /Users/suattop/Desktop/hashapp/node_modules/express/lib/router/index.js:284:7
<br> at Function.process_params (/Users/suattop/Desktop/hashapp/node_modules/express/lib/router/index.js:335:12)
<br> at next (/Users/suattop/Desktop/hashapp/node_modules/express/lib/router/index.js:275:10)
<br> at session (/Users/suattop/Desktop/hashapp/node_modules/express-session/index.js:454:7)
<br> at Layer.handle [as handle_request] (/Users/suattop/Desktop/hashapp/node_modules/express/lib/router/layer.js:95:5)
<br> at trim_prefix (/Users/suattop/Desktop/hashapp/node_modules/express/lib/router/index.js:317:13)
<br> at /Users/suattop/Desktop/hashapp/node_modules/express/lib/router/index.js:284:7
</pre>
</body>
1回答
-
Jokcy
2018-05-21
都提示这么明显了,你获取accessToken的地方报错了啊。。。
00
相似问题