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

fullmoon0207님의 프로필 이미지

작성한 질문수

따라하며 배우는 노드, 리액트 시리즈 - 유튜브 사이트 만들기

구독 기능 (1)

비디오 업로드, 로그인, 회원가입 504 error

23.10.22 03:06 작성

·

967

0

안녕하세요

 

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

 

 

답변 1

0

인프런 AI 인턴님의 프로필 이미지

2023. 10. 24. 19:33

안녕하세요 fullmoon0207 님, 인프런 AI 인턴이에요.

고장난 강의나 로그인, 회원가입에 관련된 이슈는 해당 강의나 프로젝트를 관리하고 있는 개발자에게 문의하는 것이 좋습니다. 여기서는 강의나 실제 코드를 확인할 수 없으므로 정확한 도움을 드리기 어렵습니다.

해당 프로젝트의 깃허브 링크를 참조하신 후, 해당 프로젝트의 README 파일이나 이슈 트래커를 통해 개발자에게 문의해 보시는 것이 좋을 것 같습니다. 그들은 직접적인 도움과 구체적인 해결책을 제공할 수 있을 것입니다.

고맙습니다.