• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

서버에러 발생

19.04.23 19:52 작성 조회수 145

0

안녕하세요. 백엔드개발자인데 프론트에 관심이 있어 강의 보고있습니다.

먼저 너무 멋진 강의 감사합니다.

js알못이지만, 열심히 따라오고 있습니다.

보드 추가 api호출하면 아래와 같이 에러가 발생합니다.

혹시 어떤 케이스인지 알수 있을까요??

 

server is running localhost:3000

Error: not found

    at app.use (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/app.js:45:8)

    at Layer.handle [as handle_request] (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/layer.js:95:5)

    at trim_prefix (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:317:13)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:284:7

    at Function.process_params (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:335:12)

    at next (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:275:10)

    at serveStatic (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/serve-static/index.js:75:16)

    at Layer.handle [as handle_request] (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/layer.js:95:5)

    at trim_prefix (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:317:13)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:284:7

    at Function.process_params (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:335:12)

    at next (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:275:10)

    at urlencodedParser (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/body-parser/lib/types/urlencoded.js:82:7)

    at Layer.handle [as handle_request] (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/layer.js:95:5)

    at trim_prefix (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:317:13)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:284:7

    at Function.process_params (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:335:12)

    at next (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:275:10)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/body-parser/lib/read.js:130:5

    at invokeCallback (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/raw-body/index.js:224:16)

    at done (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/raw-body/index.js:213:7)

    at IncomingMessage.onEnd (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/raw-body/index.js:273:7)

POST /board 500 15.730 ms - 3341

TypeError: res.status is not a function

    at app.use (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/app.js:50:7)

    at Layer.handle_error (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/layer.js:71:5)

    at trim_prefix (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:315:13)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:284:7

    at Function.process_params (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:335:12)

    at next (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:275:10)

    at app.use (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/app.js:45:3)

    at Layer.handle [as handle_request] (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/layer.js:95:5)

    at trim_prefix (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:317:13)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:284:7

    at Function.process_params (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:335:12)

    at next (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:275:10)

    at serveStatic (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/serve-static/index.js:75:16)

    at Layer.handle [as handle_request] (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/layer.js:95:5)

    at trim_prefix (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:317:13)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:284:7

    at Function.process_params (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:335:12)

    at next (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:275:10)

    at urlencodedParser (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/body-parser/lib/types/urlencoded.js:82:7)

    at Layer.handle [as handle_request] (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/layer.js:95:5)

    at trim_prefix (/Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:317:13)

    at /Users/imunhaeng/workspace/vue_lecture/lecture-vue-trello-server/node_modules/express/lib/router/index.js:284:7

 

답변 0

답변을 작성해보세요.

답변을 기다리고 있는 질문이에요.
첫번째 답변을 남겨보세요!