Intermittent code 14 (UNAVAILABLE) error with google-cloud-vision in Python

I am running OCR processing on multiple JPG images (~600KB each) using the Google Cloud Vision API (text_detection) in Python.

It used to work without any issues, but recently it suddenly started throwing code 14 (UNAVAILABLE) errors intermittently (some files succeed while others fail with this error).

Environment:

Python: 3.9

google-cloud-vision: 3.10.2

OS: Windows 11

Could anyone advise on potential causes or additional workarounds to try? Any help would be greatly appreciated.

1 Like