본문 바로가기

에러 기록3

[에러 기록] does not have a commit checked out 🚨 문제 발생 : git에서 폴더를 add 하는 과정에서 해당 에러가 발생하였다. error: '폴더_이름' does not have a commit checked out ❓원인 : 로컬 저장소에 .git 파일이 여러 개 있기 때문에 발생한 것 하위 폴더에 들어가 'ls -al' 명령어를 통해 숨긴 파일들을 모두 보면, .git 파일이 있음을 확인 할 수 있었다. 💡해결 : 중복 생성된 하위 폴더의 .git 파일을 제거해줌 2023. 12. 5.
[에러 기록] HttpMessageNotReadableException: JSON parse error HttpMessageNotReadableException: JSON parse error: Cannot construct instance of `org.study.boardProject.dto.CommentDto$Patch` (although at least one Creator exists): cannot deserialize from Object value (no delegate- or property-based Creator); nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `org.study.boardProject.dto.CommentDto$Patc.. 2023. 1. 9.
[에러 기록] HttpClientErrorException : 401 Unauthorized: [no body] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 Unauthorized: [no body]] with root cause ... RestTemplate Class로 카카오 로그인을 구현하는 과정에서 발생하였다. 카카오 인증 서버에 토큰은 잘 받아 왔는데, 그 이후에 회원 정보를 가져오는 과정에서 Body가 존재하지 않는다는 에러를 만났다. 아래의 코드가 에러를 만났을 때의 코드다.. 2022. 12. 20.