Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

500 Internal Server Error with Google Document AI Prediction (generative)

Hi everyone,

I'm working on a project using Google Document AI for document processing. My setup involves the following:

  • Python version: 3.8
  • Packages:

 

google-api-core==2.11.0
google-auth==2.17.3
google-cloud-documentai==2.21.0
google-cloud-vision==3.4.1
googleapis-common-protos==1.59.0

 

While making prediction requests to the Document AI API, I sometimes encounter a 500 Internal Server Error.

The error is intermittent, and there doesn't seem to be a specific pattern or condition under which it occurs. Here’s a sample traceback:

 

 

Error processing document: 500 Internal Server Error: INTERNAL_SERVER_ERROR

 

 

I've already tried checking the API quota and usage, and everything seems to be within limits. Also, the input documents are well-formed and similar to the ones that successfully process without errors.

Has anyone encountered this issue or have any suggestions on troubleshooting and resolving this intermittent 500 Internal Server Error?

Thank you in advance for your help!

0 0 593
0 REPLIES 0