[이슈] JwtAuthenticationFilter - [JwtAuthenticationFilter] doFilterInternal

Ik·2023년 3월 13일
0

Back

목록 보기
19/33

회사 CMS, API, Front 3개 정상 실행했지만 로그인 과정 중에 에러 발생





Error

배경

해결

  • 많은 이유들이 존재하겠지만 나의 경우는 url 이슈였다
    • Intellij에서 tomcat으로 실행하는데 있어 자동으로 Context Path가 설정되었고 시스템 상에서 정의되어 있는 url 주소와 맵핑이 안되 발생하는 에러였다

과정

  • Spring에서JwtAuthenticationFilter - [JwtAuthenticationFilter] doFilterInternal
    • Spring에서 에러 확인하고 찾아봤지만 갈피를 제대로 잡지 못했다
  • 동시에 Vue에서 error : [HPM] Error occurred while trying to proxy request /api/chcj/login/ from localhost:9999 to http://localhost:8081/ (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
    • 이 상황에서 proxy 오류라 생각해 Vue package.json에 proxy를 추가했지만 실패





0개의 댓글