OCR Free not working on POST (working on GET)

Hello,

I need some OCR for a free project that I am currently building.
After digging about many library and other services, I finally found the perfect one : yours.

However I have some trouble using POST API
I use nodejs and axios to send POST query:

    Axios.post('https://api.ocr.space/parse/image', {
            apikey: 'my_api',
            base64image: the base64 of the image,
            scale: true
        })
        .then((response) => {
            console.log('success');
            console.log(response.data);
        })
        .catch((error) => {
            console.log('error');
            console.log(error);
        }); 

The communication seems OK (get 200) but here is the result:

{ OCRExitCode: 99,
IsErroredOnProcessing: true,
ErrorMessage:
[ ‘Some internal processing error occurred. Please give us some time, we are looking into this!’ ],
ErrorDetails: ‘’,

I tried the API with url and got the same issue.
With the same image, by using the GET api it works but I am not willing to use GET API since it will require me to upload the image before and it’s not viable in my project.

What I am doing wrong here ?
Thanks for your help.

If you test the connection with Postman, do you get the same result?

You probably know it, but just in case: Postman is a free Chrome app, see https://ocr.space/ocrapi#postman

If you see the problem even with Postman, a screenshot of the result could be helpful.

It seems something is wrong with the way you send the request. But I am not sure yet what it is.

=>If you test the connection with Postman, do you get the same result?

You probably know it, but just in case: Postman is a free Chrome app, see https://ocr.space/ocrapi#postman

If you see the problem even with Postman, a screenshot of the result could be helpful.

Try this code:

var bodyFormData = new FormData();
bodyFormData.set(‘url’, ‘http://i.imgur.com/fwxooMv.png’);
bodyFormData.set(‘apikey’, ‘yourKey’);
bodyFormData.set(‘filetype’, ‘PNG’);
axios({
method: ‘post’,
url: ‘https://api.ocr.space/Parse/Image’,
data: bodyFormData,
config: { headers: {‘Content-Type’: ‘multipart/form-data’ ,}}
})
.then(function (response) {
//handle success
console.log(response);
})
.catch(function (response) {
//handle error
console.log(response);
});