강의

멘토링

커뮤니티

인프런 커뮤니티 질문&답변

jmef님의 프로필 이미지
jmef

작성한 질문수

회원가입 정보가 안 넘어옵니다!!!!!!! ECONNREFUSED 오류.............

작성

·

176

0

다른 학생분들의 오류 질문 전부 읽어 보았는데 다들 백엔드 서버가 꺼져 있다고 하시더라고요
강사님이랑 똑같이 프록시 설정 등 5000 포트로 해 두었고
프론트에서 내용은 다 켜지는데 백엔드랑 연결이 안 되어서 그런지 회원가입, 로그인도 안 되고 DROPZONE에 사진 업로드할 때도 사진이 넘어가지지를 않습니다 ㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠㅠ
BYCRYPT 때문은 아닌 것 같고 저는 경로 설정도 CLIENT나 SERVER 폴더가 아니라 boilerplate-mern-stack-master 폴더에서 npm run dev로 함ㅁ께 켜 주었는데 왜 연결이 되지 않는 걸까요???????????
오류 관련 글은 전부 읽어 보았고 cmd에서 3000, 5000번 연결된 PID 찾아서 서버도 전부 꺼 보았는데 자꾸만 같은 에러가 뜹니다 ㅠㅠㅠ 백엔드 서버 켜고 연결하는 법 아시는 분 도와주실 수 있나요?
 
에러로그는 아래와 같습니다
 
 
PS C:\Users\user\OneDrive\Desktop\boilerplate-mern-stack-master\boilerplate-mern-stack-master> npm run dev

> react-boiler-plate@1.0.0 dev C:\Users\user\OneDrive\Desktop\boilerplate-mern-stack-master\boilerplate-mern-stack-master
> concurrently "npm run backend" "npm run start --prefix client"

[1] 
[1] > client@0.1.0 start C:\Users\user\OneDrive\Desktop\boilerplate-mern-stack-master\boilerplate-mern-stack-master\client
[1] > react-scripts start
[1]
[0] 
[0] > react-boiler-plate@1.0.0 backend C:\Users\user\OneDrive\Desktop\boilerplate-mern-stack-master\boilerplate-mern-stack-master
[0] > nodemon server/index.js
[0]
[0] [nodemon] 1.19.4
[0] [nodemon] to restart at any time, enter `rs`
[0] [nodemon] watching dir(s): *.*
[0] [nodemon] watching extensions: js,mjs,json
[0] [nodemon] starting `node server/index.js`
[0] C:\Users\user\OneDrive\Desktop\boilerplate-mern-stack-master\boilerplate-mern-stack-master\server\routes\product.js:18
[0] )
[0] ^
[0]
[0] SyntaxError: Unexpected token ')'
[0]     at wrapSafe (internal/modules/cjs/loader.js:988:16)
[0]     at Module._compile (internal/modules/cjs/loader.js:1036:27)
[0]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
[0]     at Module.load (internal/modules/cjs/loader.js:937:32)
[0]     at Function.Module._load (internal/modules/cjs/loader.js:778:12)      
[0]     at Module.require (internal/modules/cjs/loader.js:961:19)
[0]     at require (internal/modules/cjs/helpers.js:92:18)
[0]     at Object.<anonymous> (C:\Users\user\OneDrive\Desktop\boilerplate-mern-stack-master\boilerplate-mern-stack-master\server\index.js:37:25)
[0]     at Module._compile (internal/modules/cjs/loader.js:1072:14)
[0]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
[0]     at Module.load (internal/modules/cjs/loader.js:937:32)
[0]     at Function.Module._load (internal/modules/cjs/loader.js:778:12)      
[0]     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
[0]     at internal/main/run_main_module.js:17:47
[0] [nodemon] app crashed - waiting for file changes before starting...       
[1] [HPM] Proxy created: /  -> http://localhost:5000
[1] i 「wds」: Project is running at http://172.30.80.93/
[1] i 「wds」: webpack output is served from
[1] i 「wds」: Content not from webpack is served from C:\Users\user\OneDrive\Desktop\boilerplate-mern-stack-master\boilerplate-mern-stack-master\client\public
[1] i 「wds」: 404s will fallback to /
[1] Starting the development server...
[1]
[1] Browserslist: caniuse-lite is outdated. Please run:
[1] npx browserslist@latest --update-db
[1] Compiled with warnings.
[1]
[1] ./src/components/views/UploadProductPage/UploadProductPage.js
[1]   Line 2:9:    'Typography' is defined but never used
             no-unused-vars
[1]   Line 6:9:    'Textarea' is assigned a value but never used
             no-unused-vars
[1]   Line 23:12:  'Images' is assigned a value but never used
             no-unused-vars
[1]   Line 23:20:  'setImages' is assigned a value but never used
             no-unused-vars
[1]   Line 48:19:  Comments inside children section of tag should be placed inside braces  react/jsx-no-comment-textnodes
[1]
[1] ./src/components/utils/FileUpload.js
[1]   Line 46:25:  img elements must have an alt prop, either with meaningful 
text, or an empty string for decorative images  jsx-a11y/alt-text
[1]
[1] ./src/components/views/LoginPage/LoginPage.js
[1]   Line 74:11:  'dirty' is assigned a value but never used        no-unused-vars
[1]   Line 79:11:  'handleReset' is assigned a value but never used  no-unused-vars
[1]
[1] ./src/components/views/RegisterPage/RegisterPage.js
[1]   Line 92:11:  'dirty' is assigned a value but never used        no-unused-vars
[1]   Line 97:11:  'handleReset' is assigned a value but never used  no-unused-vars
[1]
[1] Search for the keywords to learn more about each warning.
[1] To ignore, add // eslint-disable-next-line to the line before.
[1]
[1] [HPM] Error occurred while trying to proxy request /api/users/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[1] [HPM] Error occurred while trying to proxy request /api/users/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[1] [HPM] Error occurred while trying to proxy request /api/users/login from localhost:3000 to http://localhost:5000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[1] [HPM] Error occurred while trying to proxy request /api/users/login from localhost:3000 to http://localhost:5000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[1] [HPM] Error occurred while trying to proxy request /api/users/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
calhost:3000 to http://localhost:5000 (ECONNREFUSED) (https://nodejs.org/api/e[1] [HPM] Error occurred while trying to proxy request /api/users/auth from localhost:3000 to http://localhost:5000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[1] [HPM] Error occurred while trying to proxy request /api/product/image from localhost:3000 to http://localhost:5000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
일괄 작업을 끝내시겠습니까 (Y/N)? y

답변

답변을 기다리고 있는 질문이에요
첫번째 답변을 남겨보세요!
jmef님의 프로필 이미지
jmef

작성한 질문수

질문하기