CoinMarketCap

무료
분류별 Igor Zakutynsky | 업데이트됨 22 days ago | Data
인기

0.4 / 10

지연 시간

127,261ms

서비스 수준

0%

Health Check

N/A

모든 토론으로 돌아가기

JSON_VALIDATION Error when using optional parameters

Rapid account: Abhijeet B Eg Rij Hszk

Whenever a request is made with optional parameters, it gives JSON_VALIDATION error in Test Endpoint part of site.

e.g

Request:

unirest.post(“https://CoinMarketCapzakutynskyV1.p.rapidapi.com/getCryptocurrency”)
.header(“X-RapidAPI-Key”, “bd7b5b28ebmsh47b39e1a512dc68p1ba46ajsnf782cac77767”)
.header(“Content-Type”, “application/x-www-form-urlencoded”)
.send(“id=bitcoin”)
.end(function (result) {
console.log(result.status, result.headers, result.body);
});

Response:

{2 items
"callback":“error”
“contextWrites”:{1 item
"to":{2 items
"status_code":“JSON_VALIDATION”
“status_msg”:“Syntax error. Incorrect input JSON. Please, check fields with JSON input.”
}
}
}

Rapid account: Rawwool
rawwool Commented 5 years ago

+1

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입