Authentication problem using Python codesample

  • 79 Views
  • Last Post 21 June 2018
nandini.royit posted this 19 June 2018

requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: http://cloud.ocrsdk.com/processImage

Order By: Standard | Newest | Votes
Oksana Serdyuk posted this 21 June 2018

First, you should make sure that the request has the correct header and body. Please check that you're using right Application ID and Application Password. Keep in mind that capitalization and white spaces matter. In our Python code sample they should be specified in the lines 42-43, for example:

ApplicationId = "Application_name"
Password = "**********************"

You can use HTTP debugger for this task (Fiddler or any other that is suitable for your platform).

Also if you’re sure that the credentials are correct, try to reset your Application Password via the Application settings once again.

If the above doesn't help, please send the following information to Cloudocrsdk@abbyy.com:

  1. the piece of your code where you perform authentication with the Application ID and Application Password credentials,
  2. logs from any HTTP debugger.

  • Liked by
  • nandini.royit
nandini.royit posted this 21 June 2018

Thank you Oksana.

I checked the prerequisite but still getting the 401 error.

I am sending an email with the details and request you to check and revert.

I am planning to add for a enterprise solution.

 

 

nandini.royit posted this 21 June 2018

Also, if you could let me know how to set the proxy in the code it will be greatful.

 

Thank you.

 

Regards,

Nandini

Oksana Serdyuk posted this 21 June 2018

We have received your message. Most possible you use incorrect Application Password, so please try to reset it.

Close