문의 시 사용하시는 SDK 버전 정보와 플랫폼(Android / iOS) 및 디벨로퍼스 앱ID를 알려주세요.
앱 ID : 992024
안녕하세요.
카카오에서 받아온 유저 정보로 회원가입을 진행하려니 403에러,
로그아웃을 시도하니 401 에러가 발생합니다… ㅠㅠ
- 회원가입
final user = await kakao.UserApi.instance.me(); // 정상적인 값 출력 확인
…
Response customTokenResponse = await _dio.post(
‘url’,
data: signUpUser.toJson(),
);
DioException (DioException [bad response]: This exception was thrown because the response has a status code of 403 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 403 has the following meaning: “Client error - the request contains bad syntax or cannot be fulfilled”
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.
- 로그아웃
await kakao.UserApi.instance.logout(); ← 이 코드에서 앱이 멈추고 401 에러를 뱉습니다.
DioException (DioException [bad response]: This exception was thrown because the response has a status code of 401 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 401 has the following meaning: “Client error - the request contains bad syntax or cannot be fulfilled”
Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.)