我是node的新手,目前遇到了一个似乎很常见的错误:Error: Can't set headers after they are sent to the client。我已经读了一些帖子,但我不能理解这个,这是我到目前为止的代码: router.get('/:id', (req, res) => User.findAll({ id: req.params.id, attributes : {
exclude : ['
行res.send("Successfully saved the new address.");抛出'ERR_HTTP_HEADERS_SENT'错误。我阅读了关于相同错误的其他帖子,并尝试了return res.send("Successfully saved the new address."),但这并不能解决这个问题。有什么见解吗?注:,我是新手。谢谢。err) {
res.send(&qu