Community

Authentication problem using Python codesample

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

Was this article helpful?

0 out of 0 found this helpful

Comments

4 comments

  • Avatar
    Permanently deleted user

    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.
    0
  • Avatar
    Permanently deleted user

    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.

     

     

    0
  • Avatar
    Permanently deleted user

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

     

    Thank you.

     

    Regards,

    Nandini

    0
  • Avatar
    Permanently deleted user

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

    0

Please sign in to leave a comment.