Skip to content

추출 실패 경로의 WARN 소음과 홈 리다이렉트 판별 정리 #82

Description

@m-a-king

왜

전 서비스 WARN 알림 첫날 실수신 (2026-09-18)

logger 원문 성격
org.apache.hc.client5.http.protocol.ResponseProcessCookies cafe24 몰이 Set-Cookie domain 을 자기 도메인이 아닌 *.cafe24.com 으로 내려 HttpClient 가 거부 외부 요인 소음, 추출 결과 무관
HttpPageFetcher link fetch failed: status=404 없는 상품 URL 등록, 정상 실패
FallbackProductLinkExtractor extract escalate=headless outcome=failed core 파싱 실패 알림과 같은 실패, 알림 2건

홈페이지 리다이렉트를 상품 페이지 아님으로 확정

  • 참조: core item 2219, packnfold.co.kr
  • 등록 URL 에 인스타그램 광고 파라미터(utm_* 6개·fbclid) 포함
  • 몰이 302 로 사이트 루트(/)로 돌려보냄
    • 결과: 홈페이지 본문 약 6만 토큰을 Gemini 에 보내 NOT_PRODUCT_PAGE
    • 결과: 재시도 1회 동일, Gemini 호출 2회 소모
  • 이후 재현 없음
    • 조건: 로컬·extractor 박스에서 파라미터 유무·UA·헤더 동일하게 요청
    • 몰 쪽 일시 동작으로 판단

무엇을

로그 레벨 조정

대상 조치
ResponseProcessCookies application.yml 에서 해당 logger 를 ERROR 로
HttpPageFetcher.statusFailure 4xx 는 INFO, 5xx 는 WARN 유지
FallbackProductLinkExtractor.escalateToHeadless 실패 로그 INFO

요청 전 추적 파라미터 제거

  • utm_*·fbclid 는 페이지 내용과 무관
  • 위험: 몰마다 파라미터에 의존하는 경우 확인 필요

요청 경로 밖으로 튕긴 리다이렉트 판별

  • 요청은 /product/..., 최종 URL 이 사이트 루트면 상품 페이지 판정 전에 실패 처리
  • 원인: Gemini 호출 없이 재시도 가능한 실패로 분류
  • 결과 코드는 계약 카탈로그(infra) 확인 후 결정

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

fix외부 가시적 결함 수정

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions