728x90
반응형
java.lang.IllegalArgumentException: Invalid character found in the request target [/v1/user/students/contracts/list?type=normal&date_type=range&from_date=2023-04-19&to_date=2023-05-19&user_type=&grade=all&searchType=all&keyword=&service_status[]=S1&service_status[]=3&page_size=10&page_count=1&flag=manager ]. The valid characters are defined in RFC 7230 and RFC 3986
service_status 를 배열로 보냈기 때문에 발생한 에러이다 로컬에서는 통과됐지만 스테이지 서버에서는 오류가 발생했다.
해당 API 호출 시 request param 으로
const defaultOptions = {
searchType: "all",
keyword: "",
service_status: ["S1","3"]
};
과 같은 데이터를 보냈는데.
service_status: "S1,3"
로 클라이언트에서 전송 정보를 수정하고 서버측에서 split을 통해 처리하도록 했다.
수정 이후에는 다음과 같은 url 로 요청하게 된다.
320x100
반응형
'ERROR' 카테고리의 다른 글
[ERROR] No tests found for given includes: [com.express.freight.common.UserRedisRepositoryTest.test] (0) | 2023.12.26 |
---|---|
[intellij] Stuck Scanning files to index (0) | 2023.06.10 |
[ERROR] com.querydsl.core.types.ExpressionException (0) | 2023.02.27 |
[ERROR] CORS React (CRA) + JAVA 11 (0) | 2022.07.24 |
[ERROR] problem: package org.junit does not exist (1) | 2022.07.05 |