I have download the sample Java client application from github. I have my applicationid and application password But still I am unable to access the cloud and convert the document!

The error message that I am getting is as follows.

Exception in thread "main" java.io.IOException: Server returned HTTP response code: 401 for URL: http://cloud.ocrsdk.com/processImage?language=English&exportFormat=pdfSearchable
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at com.abbyy.ocrsdk.Client.processImage(Client.java:19)
    at com.abbyy.ocrsdk.AbbyyClient.main(AbbyyClient.java:10)

Please advice me on this (Note : applicationid / application password is different from the cloud userid and password)

Thanks Sriniasan. C

asked 19 Mar '12, 15:13

Srinivasan%20Chokkalingam's gravatar image

Srinivasan C...

edited 09 Jun '12, 11:25

Vasily%20Panferov's gravatar image

Vasily Panferov ♦♦

I've converted this thread to a separate question for convinience.

(19 Mar '12, 15:44) Nikolay_Kh ♦♦

Hi there! HTTP 401 response code stands for unauthorized request.

First, please make sure that you're using right Application ID & Application Password. You can find your AppID in your dashboard:

alt text

Keep in mind that capitalization and whitespaces matter.

Your Application Password was sent to you by e-mail when you created it. You can try to reset it (use Reset Application Password link in the dashboard).

If the above doesn't help, please send the piece of code where you perform authentication with the AppID and App password credentials that produce the error to cloudocrsdkbeta@abbyy.com Thanks!


answered 19 Mar '12, 15:43

Nikolay_Kh's gravatar image

Nikolay_Kh ♦♦

edited 19 Mar '12, 15:46

@Nikolay_Kh, Thanks for the quick reply. It works for me. Can any one tell me how keep on pinging a particular task to understand whether the conversion is completed or not?


answered 19 Mar '12, 16:41

Srinivasan%20Chokkalingam's gravatar image

Srinivasan C...

Basically, you need to loop a HTTP Get request of http(s)://cloud.ocrsdk.com/getTaskStatus?taskId=<yourtaskid> until the status attribute in xml response has a state of "Completed".

You can refer to this quickstart guide and getTaskStatus method documentation for details.


answered 19 Mar '12, 17:06

Nikolay_Kh's gravatar image

Nikolay_Kh ♦♦

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](http://url.com/ "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: 19 Mar '12, 15:13

Seen: 7,956 times

Last updated: 09 Jun '12, 11:25

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