i am getting this error message when sending my imagebase64 file to the api
{“statusCode”:452,“statusMessage”:“Upload Image File”,“hasError”:true}
what can i do?
Hi I am getting same error this is sample code imageData and strimage both have base64 sring
const settings = { “async”: true, “crossDomain”: true, “url”: “https://face-verification2.p.rapidapi.com/faceverification”, “method”: “POST”, “headers”: { “content-type”: “application/x-www-form-urlencoded”, “x-rapidapi-host”: “face-verification2.p.rapidapi.com”, “x-rapidapi-key”: “xyz” }, “data”: { “image1Base64”: imageData, “image2Base64”: strImage } };
$.ajax(settings).done(function (response) {alert(1) console.log(response); });
Are you sure you call the correct endpoint? please give us your sample request!
Присоединяйтесь к обсуждению – добавьте комментарий ниже:
Hi
I am getting same error
this is sample code
imageData and strimage both have base64 sring
const settings = {
“async”: true,
“crossDomain”: true,
“url”: “https://face-verification2.p.rapidapi.com/faceverification”,
“method”: “POST”,
“headers”: {
“content-type”: “application/x-www-form-urlencoded”,
“x-rapidapi-host”: “face-verification2.p.rapidapi.com”,
“x-rapidapi-key”: “xyz”
},
“data”: {
“image1Base64”: imageData,
“image2Base64”: strImage
}
};
$.ajax(settings).done(function (response) {alert(1)
console.log(response);
});
Are you sure you call the correct endpoint?
please give us your sample request!