Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[노철] - api 에러 핸들링 #166

Merged
merged 10 commits into from
Nov 27, 2023
Merged

[노철] - api 에러 핸들링 #166

merged 10 commits into from
Nov 27, 2023

Conversation

qkdl60
Copy link
Contributor

@qkdl60 qkdl60 commented Nov 27, 2023

📌 이슈 번호

close #153

🚀 구현 내용

스크린샷 2023-11-27 223307
  • 마이페이지 스타일 수정
  • 이메일 검증 모달 에러 핸들링
  • querykey 상수 적용

@qkdl60 qkdl60 added the 💡중간 보통단계 label Nov 27, 2023
@qkdl60 qkdl60 added this to the V1.0 milestone Nov 27, 2023
@qkdl60 qkdl60 self-assigned this Nov 27, 2023
Copy link
Contributor

@MinwooP MinwooP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

마이페이지 api 처리가 까다로워보이는데 잘 하셨네요 !! 고생 많으셨습니다 !! 🤗

await submitCertification(code).catch((error: AxiosError) => {
if (error && error.response) {
const status = error.response.status;
if (status <= 400 || status >= 500) throw error;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 부분이 네트워크 연결 실패나 기타 이유로 에러일 경우 페이지 단위 에러 바운더리로 넘기기 위해 다시 throw 하는 부분일까요 ??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네 401부터 409까지는 인증 결과 에러입니다.

Copy link
Contributor

@suehdn suehdn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 노철님!! LGTM

@qkdl60 qkdl60 merged commit 199493b into dev Nov 27, 2023
@qkdl60 qkdl60 deleted the feat/#153/api-error-handling branch November 27, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡중간 보통단계
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[노철] - api 에러 핸들링
3 participants