search

Home  >  Q&A  >  body text

node.js - Reids: ERR value is not an integer or out of range/ Express

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

// login 路由设置

// login.js

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

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

PHP中文网PHP中文网2863 days ago596

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 11:49:28

    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

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 11:49:28

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

    reply
    0
  • Cancelreply