(확인했으면 체크박스에 체크해 주세요! 😄)
건의 사항
Aug 4, 2022 오전 11:34 로그인 API는 정상적으로 동작하여! 프로필 등록 API를 테스트해 본 결과 500 error가 떠서 고객센터에 문의합니다😀

요청 2가지로 테스트 결과 모두 500 에러가 발생합니다!


답변
- 효니
- 오호 API 업데이트 해주시죠ㅋㅋㅋㅋ
- 쿠키가 비어있기는 합니다
- 오 하나 흥미로운 점을 봤는데! 500에러여도 JSESSIONID를 넣어주시는 군요?

- 하니
- 이게 Tomcat이 ec2 도메인에 접근하면 자동으로 Session을 생성합니다.(JSessionId) 그리고 해당 도메인을 사용할 때 계속 이 sessionID를 사용하는 것으로 알고있으여 맞나?
- 저희는 그 세션을 가지고 세션에 데이터를 넣어주거나 뺴서 사용할 뿐 Session 자체를 새로 생성하고 그러지는 않는 것 같아요!

- 효니
- Aug 4, 2022 오전 11:45 방금 categories로 다시 보내봤는데 categories: string[] 일 때는 500에러가 뜨고, categories: string일 때는 400에러가 뜨네요!
- 하니
- 확인해 볼게요! 혹시 다시 로그인하시고 categories: string[] 으로 보내보시겠어요!
- 효니
- 다시 로그인하고 categories: string[]으로 보냈습니다. 500 에러! 띠용

제가 로그인하고 그 세션을 가지고 했을 때 동작입니다. 아마 세션 문제가 아닐 까 싶네요!
## 로그인 ## 2022-08-04 02:50:02.336 INFO 1 --- [nio-8080-exec-7] c.m.linkocean.domain.user.UserService : user save start email : seunghan@naver.com Hibernate: select user0_.id as id1_9_, user0_.email as email2_9_, user0_.oauth_type as oauth_ty3_9_ from users user0_ where user0_.email=? and user0_.oauth_type=? Hibernate: insert into users (email, oauth_type) values (?, ?) ## 프로필이 있는지 조회 ## 2022-08-04 02:50:02.396 INFO 1 --- [nio-8080-exec-7] c.m.linkocean.domain.user.UserService : 새로운 사용자 저장 email : seunghan@naver.com, oauth type : NAVER Hibernate: select profile0_.id as id1_6_, profile0_.bio as bio2_6_, profile0_.image as image3_6_, profile0_.user_id as user_id5_6_, profile0_.username as username4_6_ from profile profile0_ where profile0_.user_id=? ## 프로필 생성 ## 2022-08-04 02:50:08.190 INFO 1 --- [nio-8080-exec-8] c.m.l.c.profile.ProfileController : session user id 3 Hibernate: select user0_.id as id1_9_0_, user0_.email as email2_9_0_, user0_.oauth_type as oauth_ty3_9_0_ from users user0_ where user0_.id=? Hibernate: insert into profile (bio, image, user_id, username) values (?, ?, ?, ?) 2022-08-04 02:50:08.269 INFO 1 --- [nio-8080-exec-8] c.m.l.d.p.service.ProfileServiceImpl : save Profile 완료 Hibernate: insert into favorite_category (category, profile_id) values (?, ?) Hibernate: insert into favorite_category (category, profile_id) values (?, ?)
- 효니
- 잠시 그루트 에러 좀 보고 오겠습니다 넵!