Been working with the ocrsdk for a while now an I have successfully read and recognized characters on images using the submitImage and processDocument methods of the API. I decided to try the processField method and since, it has always given me an Error 500 - Internal Server Error. I don't know why this is happening. Although I am using the free trial account, it still says I have over 200 field recognition left.

Below is the code after submiting the image using submitImage method

// Send HTTP POST request and ret xml response
$curlHandle = curl_init();
curl_setopt($curlHandle, CURLOPT_USERPWD, "$applicationId:$password");
curl_setopt($curlHandle, CURLOPT_USERAGENT, "PHP Cloud OCR SDK Sample");
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($curlHandle, CURLOPT_POST, 1);
curl_setopt($curlHandle, CURLOPT_POSTFIELDS, $settings);

$url = '' . $params;

curl_setopt($curlHandle, CURLOPT_URL, $url);

$response = curl_exec($curlHandle);
if ($response == FALSE) {
        $errorText = curl_error($curlHandle);

$httpCode = curl_getinfo($curlHandle, CURLINFO_HTTP_CODE);//<------ Error 500 here

Like I said above, this is the only method that gives this error. Others I have tried works just fine.

Please kindly point in the right direction...

Thank you.

asked 22 Oct '13, 15:00

Oluwaseyi%20Daniel's gravatar image

Oluwaseyi Da...

edited 03 Nov '13, 14:42

Anastasia%20Galimova's gravatar image

Anastasia Ga... ♦♦

I have the same problem , but I am using c#

(29 Oct '13, 19:54) LaDev

To let us investigate the issue, please share or send to some additional information:

1) the name of your application,

2) the image you recognize,

3) the request URL you use for the recognition.

(29 Oct '13, 20:20) Anastasia Ga... ♦♦

The email with the additional information sent

(30 Oct '13, 12:41) LaDev

Dear LaDev,

The issue occurs due to an error in your XML-file: “buttom” instead of “bottom” in several places.


answered 01 Nov '13, 14:56

Anastasia%20Galimova's gravatar image

Anastasia Ga... ♦♦

Thank you a lot Anastasia

(04 Nov '13, 17:55) LaDev

I finally got past this problem. It turns out that I was sending the content of the image instead of the local path to the image. Thanks for the response though.


answered 06 Nov '13, 19:24

Oluwaseyi%20Daniel's gravatar image

Oluwaseyi Da...

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 22 Oct '13, 15:00

Seen: 1,551 times

Last updated: 06 Nov '13, 19:24

© 2016 ABBYY. All rights Reserved. | Privacy Policy | Legal