I'm trying to extract text from a pdf(image converted to pdf) using python code provided in google docs https://cloud.google.com/vision/docs/pdf. I have created service account key and using it for authentication as mentioned in docs and I'm using google SDK in my PC. The code is getting timed out with the below error:
File "C:\*****\pdf_code.py", line 39, in async_detect_document
operation.result(timeout=180) File "C:\Python27\lib\site-packages\google\api_core\future\polling.py", line 120, in result
raise self._exception google.api_core.exceptions.GoogleAPICallError: None Error writing final output to: gs://******/output-1-to-1.json
Any help would be appreciated.