Timed out waiting for results

Hi,

We have a paid subscription for OCR Space PRO PDF.
Thereby you have mentioned that it can support 999+ and File size: 100 MB+.
But when we tried to upload the file with less than 300 pages and file of ~4-5 MB we are facing “Timed out waiting for results” as response.

So kindly take this as an high priority request and help us to resolve the issue.

Hi, can you please attach the file “6.pdf” for testing? Or email it to team AT ocr.space - In your email, please mention this forum post.

Testing is in progress…

Hi,
Thank you for your response.
I have already sent detailed mail with file attachment (6.pdf, also we have send some files which caused the same issue).

The issue is fixed. It was a wrong internal account setting. Sorry about that!

Hi,

Thanks for your response and fix.

When we try to extract text using postman it’s working fine and taking time approximately 3 -5 Min.
But when we tried the same through Nodejs simple application, We are getting Timed out waiting for results as response and it’s taking approximately 10 Min.

Note:
We tried the same file shared with you “6.pdf”.

Sample code:

// We are using Express framework
const request = require('request');
const fs = require('fs');

this.extract = () => {
    let inputPdfSourceFilePath = "6.pdf";
    const options = {
        method: 'POST',
        url: "https://ap*****.ocr.space/parse/image",
        headers: {
              'apikey': "PRO PDF API KEY",
              'Content-Type': 'multipart/form-data'
    },
    formData : {
        'apikey': "PRO PDF API KEY",
        'OCREngine': "1",
        'language': 'ara',
        'scale': 'true',
        'isTable': 'true',
        'detectOrientation': 'true',
        'filetype': 'pdf',
        'file' : fs.createReadStream(inputPdfSourceFilePath)
    }
 };
return new Promise((resolve, reject) => {
    console.log('Start: ' + new Date())
    request(options, (err, res, body) => {
       if(err) {
          return reject(err);
    }
    console.log('End: ' + new Date())
    let response = JSON.parse(body);
    return resolve(response);
    });
  });
};
this.extract();