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

[bug] 회원가입 서비스 문제 #159

Closed
yonghwankim-dev opened this issue Jan 23, 2024 · 0 comments
Closed

[bug] 회원가입 서비스 문제 #159

yonghwankim-dev opened this issue Jan 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yonghwankim-dev
Copy link
Member

yonghwankim-dev commented Jan 23, 2024

상황

프로필 사진 없이 json 형식의 회원 정보를 전달만 하는 경우에는 컨트롤러에 데이터 전달이 되지만 프로필 사진과 json 데이터를 같이 전달되는 경우에는 프로필 데이터만 전달되고 json 데이터는 전달되지 않습니다.
image

회원가입 서비스 요청을 전송하는 경우 두개의 http 요청이 발생하였습니다. 첫번째 요청은 MockServiceWorker가 전송한 결과입니다.
image
image
image

두번째 요청은 index.ts 파일에서 발생한 요청입니다.
image
image
image

클라이언트로부터 전송받은 multipart/form-data 요청을 로깅했을때 signupData가 전송되지 않은 것으로 보입니다.
image

회원가입 요청 전에 프로필을 등록하지 않고 회원정보만 보내는 경우에는 signupData가 전송되는 것을 볼 수 있습니다.
image

원인

클라이언트(React)에서 목서버를 킨 상태에서 전송하는 경우에 이미지만 전달하고 json 데이터는 전달하지 않고 있습니다.

해결방법

목서버를 실행하지 않고 수행합니다.

@yonghwankim-dev yonghwankim-dev added the bug Something isn't working label Jan 23, 2024
@yonghwankim-dev yonghwankim-dev added this to the [BE] Sprint #15 milestone Jan 23, 2024
@yonghwankim-dev yonghwankim-dev self-assigned this Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant