Server responds with error during document processing: Forbidden status code

Symptoms

Error when processing documents in Cloud OCR SDK:

Python: Error: 403 Client Error: Forbidden for url

Java: Exception occured:Error getting server response

Cause

Processing location isn't specified in the application.

Resolution

In Cloud OCR SDK the connection of the application and its processing location is permanent, so to process data in another region create a new application.

Full information about applications is stored on the Dashboard tab in your account. Data processing location and the corresponding URL string for the request methods can be found in the description of the application.

mceclip0.png
Please make sure that the correct location is specified in the following part of the project ( e.g. Java ):

restClient = new Client();
  // replace with 'https://cloud-eu.ocrsdk.com' to enable secure connection
  // replace with 'https://cloud-westus.ocrsdk.com' if your application is created in US location
  restClient.serverUrl = "http://cloud-eu.ocrsdk.com";
  restClient.applicationId = ClientSettings.APPLICATION_ID;
  restClient.password = ClientSettings.PASSWORD;​

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.

Recently viewed