diff --git a/troubleshooting/250817_robeing_monitor_integration.md b/troubleshooting/250817_robeing_monitor_integration.md index 900dc71..321f8bf 100644 --- a/troubleshooting/250817_robeing_monitor_integration.md +++ b/troubleshooting/250817_robeing_monitor_integration.md @@ -66,6 +66,16 @@ 3. **Scopes 파싱 문제**: - PostgreSQL에 문자열로 저장된 scopes를 JSON 배열로 변환 +## 2025-08-28 추가 활용 + +### 로빙 레벨 문제 해결 +- **문제**: rb8001이 하드코딩된 레벨 1 반환 +- **해결**: robeing-monitor의 `/api/stats/{robeing_id}` 활용 +- **필요 작업**: + 1. 51124: state_service 라우터를 main.py에 마운트 + 2. 51123: Gateway에서 로빙 모니터 API 호출로 변경 +- **효과**: DB의 실제 레벨(20) 표시 + ## 남은 작업 사항 ### 1. 토큰 갱신 메커니즘 diff --git a/troubleshooting/250823_happybell80_rb8001_레벨1_표시_문제.md b/troubleshooting/250823_happybell80_rb8001_레벨1_표시_문제.md index 6c648d5..ee2eb81 100644 --- a/troubleshooting/250823_happybell80_rb8001_레벨1_표시_문제.md +++ b/troubleshooting/250823_happybell80_rb8001_레벨1_표시_문제.md @@ -115,11 +115,17 @@ if robeing_id == "rb8001" and "stats" in data: --- -## 4. 남은 문제 +## 4. 해결 방안 (2025-08-28 추가) -### ~~rb8001의 State Service 미연결~~ (해결됨) -- State Service는 더 이상 사용하지 않음 -- rb8001이 직접 DB에서 스탯 조회하도록 변경함 +### 로빙 모니터 API 활용 +- **51124 서버**: robeing-monitor (포트 9024) 실행 중 +- **문제**: `/api/stats/{robeing_id}` 엔드포인트가 main.py에 마운트 안됨 +- **해결**: 51124에서 state_service 라우터를 main.py에 통합 +- **Gateway 수정**: + ```python + # rb8001 하드코딩 대신 로빙 모니터 호출 + target_url = f"http://192.168.219.52:9024/api/stats/{robeing_id}" + ``` --- diff --git a/troubleshooting/250825_robeing_stats_display_issue.md b/troubleshooting/250825_robeing_stats_display_issue.md index d48a09d..d4cf7f4 100644 --- a/troubleshooting/250825_robeing_stats_display_issue.md +++ b/troubleshooting/250825_robeing_stats_display_issue.md @@ -167,10 +167,13 @@ useEffect(() => { ### 중기 (51124 서버 수정 필요) -#### 1. rb8001 서비스 수정 -- `/stats` 엔드포인트가 직접 DB 조회하도록 수정 -- `robeing_stats` 테이블과 동기화 -- State Service는 사용하지 않음 +#### 1. ~~rb8001 서비스 수정~~ → 로빙 모니터 활용 (2025-08-28) +- **새 방안**: robeing-monitor API 사용 +- **51124 작업**: state_service 라우터를 main.py에 마운트 +- **51123 작업**: Gateway에서 로빙 모니터 호출로 변경 + ```python + target_url = f"http://192.168.219.52:9024/api/stats/{robeing_id}" + ``` ---