-
글쓴이글
-
2021년 10월 21일 11:38 #18277
나윤주참가자/Users/pub/Desktop/web_mongodb/node_modules/mongodb/lib/utils.js:106
throw err;
^Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (_http_outgoing.js:485:11)
at ServerResponse.header (/Users/pub/Desktop/web_mongodb/node_modules/express/lib/response.js:771:10)
at ServerResponse.send (/Users/pub/Desktop/web_mongodb/node_modules/express/lib/response.js:170:12)
at ServerResponse.json (/Users/pub/Desktop/web_mongodb/node_modules/express/lib/response.js:267:15)
at ServerResponse.send (/Users/pub/Desktop/web_mongodb/node_modules/express/lib/response.js:158:21)
at /Users/pub/Desktop/web_mongodb/Server.js:88:24
at executeCallback (/Users/pub/Desktop/web_mongodb/node_modules/mongodb/lib/operations/execute_operation.js:70:5)
at /Users/pub/Desktop/web_mongodb/node_modules/mongodb/lib/operations/delete_one.js:31:7
at handleCallback (/Users/pub/Desktop/web_mongodb/node_modules/mongodb/lib/utils.js:102:55)
at /Users/pub/Desktop/web_mongodb/node_modules/mongodb/lib/operations/common_functions.js:321:5 {
code: 'ERR_HTTP_HEADERS_SENT'
}
[nodemon] app crashed - waiting for file changes before starting...게시물 저장 삭제 시 다음에러로 튕겨집니다.
2021년 10월 21일 11:53 #18279
나윤주참가자https://github.com/naynara87/webservice_with_mongoDB
삭제 수정이 자꾸 안되요..... 한번 봐주세요.
2021년 10월 22일 10:08 #18330
나윤주참가자그런데 하나 추가로 수정 버튼누르고 submit 하면 안넘어가집니다.
/Users/pub/Desktop/web_mongodb/node_modules/mongodb/lib/utils.js:106
throw err;
^ReferenceError: 응답 is not defined
at /Users/pub/Desktop/web_mongodb/Server.js:120:9
at executeCallback (/Users/pub/Desktop/web_mongodb/node_modules/mongodb/lib/operations/execute_operation.js:70:5)
at /Users/pub/Desktop/web_mongodb/node_modules/mongodb/lib/operations/update_one.js:48:7
at handleCallback (/Users/pub/Desktop/web_mongodb/node_modules/mongodb/lib/utils.js:102:55)
at /Users/pub/Desktop/web_mongodb/node_modules/mongodb/lib/operations/common_functions.js:386:5
at handler (/Users/pub/Desktop/web_mongodb/node_modules/mongodb/lib/core/topologies/replset.js:1210:22)
at /Users/pub/Desktop/web_mongodb/node_modules/mongodb/lib/core/connection/pool.js:405:18
at processTicksAndRejections (internal/process/task_queues.js:76:11)
[nodemon] app crashed - waiting for file changes before starting... -
글쓴이글
- 답변은 로그인 후 가능합니다.