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