Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Vision OCR
  • Getting started
  • Access management
  • Pricing policy
  • Release notes
    • Handling errors
    • Troubleshooting
  • FAQ

In this article:

  • Request errors
  • File processing errors
  • Analysis errors
  1. Troubleshooting
  2. Handling errors

Handling errors in Vision OCR

Written by
Yandex Cloud
Updated at December 14, 2023
  • Request errors
  • File processing errors
  • Analysis errors

Vision OCR returns errors for these three levels:

  • Request errors.
  • File processing errors.
  • Errors performing a specific type of analysis.

This section lists possible errors and provides descriptions for each of these levels.

Request errorsRequest errors

A standard error returned by Yandex Cloud if an operation fails. For a list of error codes and descriptions, see the API concepts.

File processing errorsFile processing errors

An error that occurs if the service failed to process some of the files received. For example, if it failed to decode an image:

{
 "results": [
  {
   "error": {
    "code": 3,
    "message": "Can't decode Image"
   }
  },
  {
    "results": [{ ... }] // Results of analyzing another file.
  }
 ]
}

If a file processing error occurs, the gRPC error code is always 3, and the error cause is specified in the message. Here are some examples:

  • Image cannot be decoded.
  • Image too big.
  • Image resolution too high.
  • Error converting to JPEG.

Analysis errorsAnalysis errors

An error that occurs if the service failed to analyze one of the requested features for the file. For example, it failed to recognize text due to an incorrect configuration:

{
 "results": [
  {
   "results": [
    {
     "error": {
      "code": 3,
      "message": "Incorrect feature configuration: Incorrect number of language codes: 0"
     }
    }
   ]
  },
  {
    "results": [{ ... }] // Results of analyzing another file.
  }
 ]
}

Possible errors:

Error code Error description
3 Invalid request parameters. For example, the configuration specifies an incorrect number of languages.
8 The limit for the given feature has been exceeded.
13 Internal server error. This error means that the operation cannot be performed due to a server-side technical problem, e.g., due to insufficient computing resources.

Was the article helpful?

Previous
Release notes
Next
Troubleshooting
© 2025 Direct Cursus Technology L.L.C.