비디오 업로드, 로그인, 회원가입 504 error
1056
4 asked
안녕하세요
http://localhost:3000/video/upload 실행해 비디오를 선택하면
POST http://localhost:3000/api/video/uploadfiles 504 (Gateway Timeout)
,
http://localhost:3000/register
실행해 가입을 하려하면
POST http://localhost:3000/api/users/register 504 (Gateway Timeout)
Uncaught (in promise) Error: Request failed with status code 504
이런 에러가 나옵니다
vscode 에서는
Server Listening on 5000
[0] MongoError: bad auth : authentication failed
[0] at MessageStream.messageHandler (C:\Han\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\mongoose\node_modules\mongodb\lib\cmap\connection.js:299:20)
[0] at MessageStream.emit (node:events:520:28)
[0] at processIncomingData (C:\Han\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\mongoose\node_modules\mongodb\lib\cmap\message_stream.js:144:12)
[0] at MessageStream._write (C:\Han\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\mongoose\node_modules\mongodb\lib\cmap\message_stream.js:42:5)
[0] at writeOrBuffer (node:internal/streams/writable:389:12)
[0] at _write (node:internal/streams/writable:330:10)
[0] at MessageStream.Writable.write (node:internal/streams/writable:334:10)
[0] at TLSSocket.ondata (node:internal/streams/readable:754:22)
[0] at TLSSocket.emit (node:events:520:28)
[0] at addChunk (node:internal/streams/readable:315:12)
[0] at readableAddChunk (node:internal/streams/readable:289:9)
[0] at TLSSocket.Readable.push (node:internal/streams/readable:228:10)
[0] at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23) {
[0] ok: 0,
[0] code: 8000,
[0] codeName: 'AtlasError'
[0] }
,
Error: ffmpeg exited with code 4294967291: frame= 1 fps=0.0 q=-0.0 Lq=-0.0 q=-0.0 size=N/A time=00:00:00.00 bitrate=N/A dup=2 drop=0 speed= 0x
[0] video:199kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[0] Conversion failed!
[0]
[0] at ChildProcess.<anonymous> (C:\Han\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\fluent-ffmpeg\lib\processor.js:182:22)
[0] at ChildProcess.emit (node:events:520:28)
[0] at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
[0] Waiting for the debugger to disconnect...
[0] node:events:498
[0] throw er; // Unhandled 'error' event
[0] ^
[0]
[0] MongooseError: Operation `users.findOne()` buffering timed out after 10000ms
[0] at Timeout.<anonymous> (C:\Han\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:198:23)
[0] at listOnTimeout (node:internal/timers:559:17)
[0] at processTimers (node:internal/timers:502:7)
[0] Emitted 'error' event on Function instance at:
[0] at C:\Han\boilerplate-mern-stack-master\boilerplate-mern-stack-master\node_modules\mongoose\lib\model.js:5084:15
[0] at processTicksAndRejections (node:internal/process/task_queues:78:11)
[1] [HPM] Error occurred while trying to proxy request /api/users/auth from localhost:3000 to http://localhost:5000 (ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[0] [nodemon] app crashed - waiting for file changes before starting...
[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/register 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/video/getVideos 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/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/video/uploadfiles 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/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/register from localhost:3000 to http://localhost:5000 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
이렇게 나옵니다
어떻게 해결해야 할까요
깃허브 https://github.com/Hanboreum/boilerplate-mern-stack-master
Answer 1
0
안녕하세요 fullmoon0207 님, 인프런 AI 인턴이에요.
고장난 강의나 로그인, 회원가입에 관련된 이슈는 해당 강의나 프로젝트를 관리하고 있는 개발자에게 문의하는 것이 좋습니다. 여기서는 강의나 실제 코드를 확인할 수 없으므로 정확한 도움을 드리기 어렵습니다.
해당 프로젝트의 깃허브 링크를 참조하신 후, 해당 프로젝트의 README 파일이나 이슈 트래커를 통해 개발자에게 문의해 보시는 것이 좋을 것 같습니다. 그들은 직접적인 도움과 구체적인 해결책을 제공할 수 있을 것입니다.
고맙습니다.
npm i하면 바로, 라이브러리 오류없이 받아지고, 구동되는 소스는 없나요?
0
52
1
ERROR in ./node_modules/antd/es/version/index.js 2:15-22
0
221
1
자료 없음
0
321
1
이미지 깨짐
0
334
1
npm run dev 동작 에러
0
304
1
npm run dev 동작 에러
0
294
1
npm run dev 동작에러납니다...
0
660
1
npm run dev 실행 오류
0
653
1
시작부터 오류생기시는 분들 해결법입니다.
1
466
1
오류 해결 공유
0
458
1
npm install 에러 질문드립니다.
0
1120
2
아예 몽고DB에 연결한다고만 하고 연결이 안되고 있습니다.
0
550
1
해당 오류 해결 방법 좀 알려주세요 ㅠㅠ
0
515
1
로컬스토리지에 대한 질문입니다!!
0
515
0
video가 안 나타나는 문제
0
893
1
ffmpeg 설치 후 cannot read property 'format' of undefined 500 에러 해결
0
470
0
typeError or 콘솔 500 뜨는분..
0
336
0
npm run dev 관련 오류
0
578
1
답글이 달리지않고 디비에도 저장되지않으며 새로고침이 됩니다.
0
246
0
useState 자동 생성
0
345
1
TypeError: Cannot read properties of undefined (reading 'format')
0
1245
2
userData undefined / state에 user.userData가 없습니다.
0
246
0
antd Input background color 변경
0
238
0
VideoDetailPage.js 비디오영상 렌더링할 때 썸네일도 안나오고 영상 재생도 안되시는 분들
0
291
0

