Skip to content

메일 동기화 SSE 연결 500 오류 수정 #375

@donghyuck

Description

@donghyuck

Type

  • Bug
  • Feature
  • Refactor
  • Docs
  • Chore

Size

  • Small (1): 단순 수정 / 단일 파일
  • Medium (2): 기능 단위 변경 / 다중 파일
  • Large (3): 구조 변경 / 복수 모듈

Summary

  • 메일 동기화 화면에서 SSE 연결이 500 응답으로 실패하여 동기화 상태를 받을 수 없습니다.

Background

  • 프론트엔드 /application/mail/sync 진입 시 메일 동기화 SSE 연결에 실패했습니다. 오류가 표시됩니다.
  • 브라우저 콘솔에는 EventSource's response has a status 500 that is not 200. Aborting the connection. 로그가 출력됩니다.
  • 클라이언트는 SSE 실패 콜백에서 오류를 표시하고 있으며, 실제 실패 원인은 서버 SSE 엔드포인트 응답 500으로 보입니다.

Scope

  • 메일 동기화 SSE 엔드포인트가 인증된 사용자 요청에서 200 text/event-stream 응답을 안정적으로 반환하도록 수정합니다.
  • SSE 초기 연결, 예외 처리, 인증 컨텍스트, 응답 commit 이후 예외 처리 흐름을 확인합니다.
  • 프론트엔드 변경은 이번 이슈 범위에 포함하지 않습니다.

Acceptance Criteria

  • /application/mail/sync 진입 시 SSE 연결 실패 alert가 표시되지 않습니다.
  • 브라우저 콘솔에 EventSource's response has a status 500 오류가 남지 않습니다.
  • 인증된 사용자의 메일 동기화 이벤트 스트림이 정상 연결됩니다.
  • 서버 로그에 response committed 이후 보안/예외 처리 오류가 남지 않습니다.

Validation Plan

  • build
  • test
  • smoke / manual check
  • analysis only (no code change)

AI-Assisted

  • Yes
  • No

AI Usage

  • Usage type: 브라우저 메뉴 스모크 테스트와 결함 분석 지원
  • Subagent used: No
  • Delegated scope: 없음
  • Main author validation: /application/mail/sync 수동 진입 후 SSE 연결 상태와 브라우저 콘솔, 서버 로그 확인

Notes

  • 확인 URL: http://localhost:3000/application/mail/sync
  • 관측 로그: EventSource's response has a status 500 that is not 200. Aborting the connection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions