rb8001 레벨 표시 문제 해결 완료 - 레벨 20 정상 표시

This commit is contained in:
happybell80 2025-08-28 16:41:33 +09:00
parent 32ab3d65f9
commit e6fc2a60da

View File

@ -151,15 +151,32 @@ GET /api/user/robeing → 404 Not Found
// 변경 후: /api/robeing/info
```
### 4.3 최종 플로우
### 4.3 라우트 우선순위 문제 (2025-08-28 추가)
**문제 발견**: `/api/robeing/info`가 작동 안함
```
Frontend (JWT) → Gateway /api/robeing/info → robeing_id 획득
/api/stats/{robeing_id} → robeing-monitor → DB
레벨 20 반환 ✅
GET http://192.168.219.52:8001/api/robeing/info → 404 Not Found
```
**원인**: FastAPI 라우트 정의 순서
- `/api/{path:path}` (line 408) - catch-all 패턴이 먼저 매칭
- `/api/robeing/info` (line 431) - 도달하지 못함
- 결과: robeing/info가 rb8001로 프록시되어 404
**해결 필요**:
- `/api/robeing/info``/api/{path:path}`보다 앞에 정의
- 또는 catch-all 패턴에서 robeing/info 제외
### 4.4 최종 플로우 ✅ 해결 완료
```
Frontend (JWT) → Gateway /api/stats/rb8001 → robeing-monitor → DB
레벨 20 정상 반환 및 표시
```
**해결 완료 (2025-08-28 16:40)**:
- Frontend가 레벨 20 정상 표시
- DB 값이 UI에 올바르게 반영됨
---
## 5. 교훈