• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Node.js, Express 게시판 [nodemon] app crashed - waiting for file changes before starting...

[nodemon] app crashed - waiting for file changes before starting...

7 글 보임 - 1 에서 7 까지 (총 7 중에서)
  • 글쓴이
  • #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...

     

     

     

    게시물 저장 삭제 시 다음에러로 튕겨집니다. 

    #18279

    나윤주
    참가자

    https://github.com/naynara87/webservice_with_mongoDB

     

    삭제 수정이 자꾸 안되요..... 한번 봐주세요.

    #18283

    codingapple
    키 마스터

    응답.어쩌구를 2번하는 코드가 어딘가에 있나봅니다 1번만 하도록 합시다 

    #18329

    나윤주
    참가자

    아 되었습니다!!!

    #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...

    #18422

    codingapple
    키 마스터

    120번줄에서 쓰는 응답이라는 파라미터나 변수가 없나봅니다

    #18433

    나윤주
    참가자

    되었습니다. 감사합니다!!

7 글 보임 - 1 에서 7 까지 (총 7 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠