API 서버 -> 레드마인 API를 웹클라이언트를 이용해서 호출하고 있는데 422 Unprocessable Entity from POST 에러가 발생했다 ㅋ
422 에러 : 데이터 타입이 유효하지 않을 때 발생함
2023-02-16 11:14:28.785 ERROR 66569 --- [nio-8081-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.reactive.function.client.WebClientResponseException$UnprocessableEntity: 422 Unprocessable Entity from POST http://100.0.0.157:30180/issues.json] with root cause
org.springframework.web.reactive.function.client.WebClientResponseException$UnprocessableEntity: 422 Unprocessable Entity from POST http://100.0.0.157:30180/issues.json
at org.springframework.web.reactive.function.client.WebClientResponseException.create(WebClientResponseException.java:237) ~[spring-webflux-5.3.24.jar:5.3.24]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
*__checkpoint ⇢ 422 from POST
assignedId : 0
assignedId : null, // 초기값이 0인 경우 api -> webclient -> 레드마인 api 호출 시, 422 에러 발생
이번에도 데이터 타입이 뭐가 문제가 있나 싶어서 id랑 mail을 다르게 했더니 성공했다 ㅠ