node.js - Reids: ERR value is not an integer or out of range/ Express
PHP中文网
PHP中文网 2017-04-17 11:47:28
0
2
580

// 打开页面时报错
url: http://127.0.0.1;3000/login

// login 路由设置

// login.js

使用 redis 作为缓存数据库,为了练手

请教问题出在哪里,连页面也无法渲染?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
Ty80

I found the reason. The reason is that when displaying the homepage, a middleware is used, and the parameters are set but not executed. When the other pages are used, the parameter just called is called, and an error is reported because of the parameter type

巴扎黑

Hello, I read this book again and encountered this problem. Can you tell me what has been changed? Thank you

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template