seminar-2020 icon indicating copy to clipboard operation
seminar-2020 copied to clipboard

새로운 username으로 회원가입 시 IntegrityError

Open tictactoeid opened this issue 4 years ago • 1 comments

#196 Issue의 경우와 동일하게, POST /api/v1/user/를 통해 새로운 username으로 회원가입 시 IntegrityError가 발생합니다. 저 또한 db에 user, token이 생성됨을 확인하였으며, 해당 Issue의 해결 방법을 시도하였으나 여전히 IntegrityError가 발생합니다. auth_user, authtoken_token table을 truncate 한 후 다시 가입을 시도하였으나 동일한 Error가 발생하는 상황입니다. 외래키 해제까지 포함하여, table 자체가 잘 삭제된 것도 확인하였습니다. 여전히 이런 오류가 일어나는 것에 대한 원인이나 해결 방법을 아시는 분이 계실까요?

tictactoeid avatar Sep 27 '20 12:09 tictactoeid

해결하였습니다. 원인은 ParticipantProfile, InstructorProfile을 저장하는 부분에 있었던 것 같습니다. 아마 except IntegrityError: 구문 때문에 헷갈리지 않았나 싶네요. 이제 201 Created가 잘 뜹니다.

tictactoeid avatar Sep 27 '20 12:09 tictactoeid