requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: http://cloud.ocrsdk.com/processImage
Authentication problem using Python codesample
- 79 Views
- Last Post 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:
- the piece of your code where you perform authentication with the Application ID and Application Password credentials,
- logs from any HTTP debugger.
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.
Also, if you could let me know how to set the proxy in the code it will be greatful.
We have received your message. Most possible you use incorrect Application Password, so please try to reset it.
1832 questions, 5946 answers.