Light Blue Pointer
본문 바로가기

Trouble Shooting8

[Open Search] OpenSearch text/keyword 매핑 차이로 인한 검색 오류 해결기 스터디 일정이 있어서 일찍 퇴근한 나는 내가 개발한 로그 페이지에 결과가 출력되지 않는다는 과장님의 카톡을 받게 된다.다음날 아침 일찍부터 출근해서 문제를 파악해 보았다. 우리팀은 tts, stt, 대화엔진 등 여러 시스템을 거칠때마다 로그를 남긴다.각 서비스간 연동 로그를 OpenSearch에서 조회해서 유의미한 정보로 가공한 후 스프링으로 백엔드 api를 구현하고 리액트로 프론트단까지 구현하는게 내 업무였다. 분명히 정말 동일한 코드로 생성된 동일한 쿼리가 날아가는데왜 TB 환경에서는 되고 STG 환경에서는 되지 않는지 고민을 시작했다. OpenSearch dashboard의 dev tools를 켜고 쿼리가 왜 안 되는지 조건을 하나씩 빼면서 실행해보았다 ```GET project_name_log_*.. 2025. 2. 18.
Exception authenticating MongoCredential{mechanism=SCRAM-SHA-256, userName='root', source='admin', password=<hidden>, mechanismProperties=<hidden>}] with root cause 🚩문제 : MongoDB 연결이 되지 않고 에러 발생2024-05-09T20:16:58.672+09:00 ERROR 23172 --- [core] [nio-8081-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.data.mongodb.UncategorizedMongoDbException: Exception authenticating MongoCredential{mechanism=SCRAM-SHA-256, userNa.. 2024. 5. 9.
[Kotlin] Cannot set property id because no setter, no wither and it's not part of the persistence constructor 🚩에러2024-04-25T22:52:54.233+09:00 ERROR 21840 --- [core] [nio-8081-exec-3] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: java.lang.IllegalStateException: Cannot set property id because no setter, no wither and it's not part of the persistence constructor public kpring.chat.chatroom.mod.. 2024. 4. 25.
JPA 순환참조/무한루프 문제 해결 (Could not write JSON: Infinite recursion (StackOverflowError)) ⛳문제 발생 : 재귀가 끝나지 않음 @Override public DetailedPostResponse getPost(Long postId, User user) { Post post = getPostById(postId); List userPosts = getUserPostsByPost(post); List allMenus = getMenus(userPosts,post); return DetailedPostResponse.builder() .author(getAuthor(userPosts)) .address(post.getAddress()) .store(post.getStore()) .minPrice(post.getMinPrice()) .deliveryCost(post.getDeliveryCost()) .. 2024. 1. 11.
깃허브 로그인 clone 받은거에서 수정해서 커밋하고 push하려고 하니까 깃허브 로그인 하라고 함 인텔리제이에서 깃허브 Authorization하는 링크가 뜸 2024. 1. 5.
깃허브 이니셜 커밋 지우기 2024. 1. 5.
Resolved [org.springframework.web.HttpRequestMethodNotSupportedException: Request method ' ' is not supported] 메서드 path가 틀려도 저렇게 나옴 2023. 12. 6.
Spring Boot 시작 시 A problem occurred configuring root project > Could not resolve all files for configuration ':classpath'. A problem occurred configuring root project 'gameLog'. > Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.1.5. Required by: project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.1.5 > No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.1.5 was found. The consumer wa.. 2023. 11. 23.