Skip to content

[BUG] 리뷰 게시하기 시 failed to fetch 에러 발생 #6

@o-sein

Description

@o-sein

📝 Description

현재 리뷰 작성 페이지에서 게시하기 버튼을 클릭 시 다음과 같은 에러가 발생함.

  • 콘솔 오류: failed to fetch

  • 발생 조건: 위치 선택 포함 모든 정보 입력 후 게시 시도할 경우

  • 예상 원인:
    API endpoint 누락 또는 주소 오타
    fetch or axios 요청 시 method, headers, body 설정 누락
    서버 CORS 설정 문제 or 서버가 꺼져 있음
    네트워크 탭 확인 필요


📌 Checklist

  • 게시 API 주소(POST / api / review 등) 정확한지 확인
  • fetch/axios 요청 구조 확인 (헤더, body, 메서드)
  • 서버에 요청이 도달하는지 네트워크 탭 확인
  • 서버 응답이 있는 경우 에러 메시지 확인
  • CORS 관련 문제 확인 (브라우저 콘솔 확인)
  • 서버가 정상적으로 작동 중인지 확인
  • API 호출 로직 try-catch로 감싸고 에러 메시지 명시
Image

Sub-issues

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfrontendFrontend-related tasks and issues including UI development, styling, and client-side logic

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions