Today we have been getting a lot of errors back from production from google Document OCR with the error response:
{'error': {'code': 400, 'message': 'Precondition check failed.', 'status': 'FAILED_PRECONDITION'}
There is no additional information, and trying the same document again after a few hours worked without error.
Is the service having issues? It is the first time I see this error in 6 months of using this API.
Hi @exarexa,
Welcome to Google Cloud Community!
The FAILED_PRECONDITION error you're seeing with Google Document OCR typically indicates that the document you're submitting doesn't meet the service's preconditions.
Here are some potential causes and ways to address them:
In addition, according to Document AI release note dated February 16, 2024:
Enterprise Document OCR version 2.0, pretrained-ocr-v2.0-2023-06-02, is now Generally Available and ready for production workloads. Please migrate OCR workloads to this new processor version.
Ensure that you are working using the new version.
Furthermore, I recommend using Personalized Service Health as the first stop when facing a service disruption for specific products. Through Personalized Service Health you can view disruptions relevant to your projects. Read more about Personalized Service Health and how to integrate it into your incident management workflow.
Another option that I can suggest is filing an issue ticket or you may contact Google Cloud support for assistance. They can help diagnose the specific issue and provide more detailed guidance.
Finally, you may keep an eye on the Document AI or Vision AI release notes for any latest updates or new features related to Enterprise Document OCR.
I hope the above information is helpful.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |