[Error Handling] 데이터베이스 config 비밀번호 에러

Open Beginner friendly
#58 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript
Domain
database

Research direction

Start with server/config.json and inspect the database password value used by the development environment. Confirm that the password is represented as a string, then rerun the Sequelize database setup or migration to verify that the internal/crypto/hash.js ERR_INVALID_ARG_TYPE error no longer occurs.

Written by the indexing model from the issue text.

Description

error

어떤 에러인가요?

  • 시퀄라이즈를 이용해서 데이터베이스 구축 및 마이그레이션할 때 config 파일에 비밀번호를 문자열로 설정하지 않아서 생긴 오류

에러 메시지

Loaded configuration file "config/config.json".
Using environment "development".
internal/crypto/hash.js:84
    throw new ERR_INVALID_ARG_TYPE(
    ^

에러 핸들링 방법

server/config.json 파일에서 데이터베이스 비밀번호를 문자열로 변경함 

에러 핸들링을 위해 참고한 레퍼런스 링크

예시1

Dominant language
JavaScript
Stars
0
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from codestates/ThereWeather

All issues in codestates/ThereWeather

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.