CoinMarketCap

FREE
By Igor Zakutynsky | Updated 16 days ago | Data
Popularity

0.4 / 10

Latency

127,263ms

Service Level

0%

Health Check

N/A

Back to All Discussions

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

Join in the discussion - add comment below:

Login / Signup to post new comments