해결된 질문
작성
·
577
0
안녕하세요
redis-serve 실행까지는 잘되는데
vsCode 에서 yarn test 만 하면 꼭 아래와 같은 에러가 발생합니다.
기본포트로 할때는 되다가
6380 포트로 바꾼이후로 잘안되고 redis 에서도
바뀐포트로 연결하고 비밀번호까지 쳤는데 아래와 같은 에러가 발생합니다.
그리고 제소스가 에러가 나서
제공해주신
express 소스를 압축을 풀어도 같은 에러가 발생을 합니다.
혹시몰라 build 파일을 삭제하고 재빌드후 다시 켜도 아래와 같은 에러가 나는데
혹시 이유를 알 수 있을까요?
● POST /messages › responds with a success message
Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command])
at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14)
at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18)
at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9)
● GET /messages › responds with all messages
Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command])
at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14)
at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18)
at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9)
● Test suite failed to run
thrown: "Exceeded timeout of 5000 ms for a hook.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
18 | });
19 |
> 20 | afterAll(async () => {
| ^
21 | await client.flushDb();
22 | await client.quit();
23 | });
at Object.<anonymous> (app/index.test.ts:20:1)
Test Suites: 1 failed, 1 total
FAIL app/index.test.ts (101.064 s)
● POST /messages › responds with a success message
Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command])
at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14)
at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18)
at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9)
● GET /messages › responds with all messages
Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command])
FAIL app/index.test.ts (100.278 s)
● POST /messages › responds with a success message
Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command])
at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14)
at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18)
at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9)
● GET /messages › responds with all messages
Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command])
at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14)
at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18)
at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9)
● Test suite failed to run
thrown: "Exceeded timeout of 100000 ms for a hook.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
18 | });
19 |
> 20 | afterAll(async () => {
| ^
21 | await client.flushDb();
22 | await client.quit();
23 | }, 100000);
at Object.<anonymous> (app/index.test.ts:20:1)
아..넵 답변 감사드립니다.
강의와 똑같이 다시 보고 했는데 redis 서버도 잘구동되는데 계속 에러가 나네요 ㅎㅎ...
test 와 dev 실행만 에러가 나도
그나마 start 가 되어서
aws ubuntu 에서는 잘 적용되니깐 그나마 다행입니다.
다시한번 강의돌려보며 따라해보겠습니다.
답변감사드립니다!!