codestates / codestates/Subllet

[ERR] Unhandled error event: ReplyError: NOAUTH Authentication required.

Open
#210 0 comments 0 reactions 1 assignee Claimed by @ionc635 View on GitHub
ERR
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### 어떤 에러인가요?
- AWS 배포 환경에서 ioredis Authentication이 필요하다는 에러가 발생했습니다.
### 에러 메시지
```shell
$ Unhandled error event: ReplyError: NOAUTH Authentication required.
```

### 에러 핸들링 방법
- AWS EC2의 redis port와 IP를 sentinels 안에 객체 형태로 삽입하고, password와 name을 추가했습니다.

```js
require("dotenv").config();
const Redis = require("ioredis");
const redis = new Redis({
sentinels: [{ host: process.env.REDIS_PORT, port: process.env.REDIS_IP }],
password: process.env.REDIS_PASSWORD,
name: "mymaster",
});
```

### 에러 핸들링을 위해 참고한 레퍼런스 링크
https://github.com/luin/ioredis/issues/553

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.