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

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें