fix: [eaccount] 12월분 조회 타임아웃 오류 수정
- PHP set_time_limit(120) 추가 (SOAP 다건 호출 시 기본 30초 초과 방지) - 프론트엔드 응답 상태/빈 응답 체크 추가 (에러 원인 구체화)
This commit is contained in:
@@ -1925,7 +1925,18 @@ className="p-1 text-red-500 hover:bg-red-50 rounded transition-colors"
|
||||
});
|
||||
|
||||
const response = await fetch(`${API.transactions}?${params}`);
|
||||
const data = await response.json();
|
||||
if (!response.ok) {
|
||||
const text = await response.text();
|
||||
throw new Error(`서버 응답 오류 (${response.status}): ${text.substring(0, 200)}`);
|
||||
}
|
||||
const text = await response.text();
|
||||
if (!text) {
|
||||
throw new Error('서버가 빈 응답을 반환했습니다. (타임아웃 가능성)');
|
||||
}
|
||||
let data;
|
||||
try { data = JSON.parse(text); } catch (e) {
|
||||
throw new Error('JSON 파싱 실패: ' + text.substring(0, 200));
|
||||
}
|
||||
|
||||
if (data.success) {
|
||||
setLogs(data.data?.logs || []);
|
||||
|
||||
Reference in New Issue
Block a user