Skip to content

[Bug] 회원가입 시 쿼리 수행 오류 #213

@WooYeonSeo

Description

@WooYeonSeo

회원가입시 findUserWithEmail 부분에서 아래와 같이 서버에서 에러납니다.

  • 파일 : 2019-17/server/src/utils/parseDB.ts:14:20
  • 소스상에서 get(0)을 하던데 처음 회원가입 하는 경우에는 데이터가 없기 때문에 발생하는 에러 같습니다.
(node:88801) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined
    at Object.getNode (/Users/yeon/dev/workspace_js/boostcamp_member/2019-17/server/src/utils/parseDB.ts:14:20)
    at /Users/yeon/dev/workspace_js/boostcamp_member/2019-17/server/src/schema/user/user.ts:35:16
    at step (/Users/yeon/dev/workspace_js/boostcamp_member/2019-17/server/src/schema/user/user.ts:33:23)
    at Object.next (/Users/yeon/dev/workspace_js/boostcamp_member/2019-17/server/src/schema/user/user.ts:14:53)
    at fulfilled (/Users/yeon/dev/workspace_js/boostcamp_member/2019-17/server/src/schema/user/user.ts:5:58)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:88801) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions