[Make 4] Token 오류

HyeonJeong·2023년 1월 9일
0

카카오 로그인에 대한 외부접속을 구현하는 과정에서 발생하는 오류를 정리하였습니다!


responseCode 오류


1. 401 오류

  • 원인 : IP 검증 문제
  • 해결 : 서버 IP로 변경하거나 값 제거 or 요청 과정에서 URL 오류
    • Kakao Developers 내 애플리케이션 → 허용 서버 IP 주소 값 변경/제거

2. persist 사용x 오류

  • 오류 문장
    ERROR 28060 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call; nested exception is javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call] with root cause
  • 원인 : 해당 스레드가 트랜잭션으로 처리x → 불안정
  • 해결 : @Transactional 추가

0개의 댓글