1
votes

I have written a python code that downloads data from a google sheet and converts into a csv. I give a google drive id and it scans all the sheets in it, downloading them into local machine. I have ran this program many times, but today I got this error:

raise APIError(response) gspread.exceptions.APIError: { "error": { "code": 503, "message": "The service is currently unavailable.", "status": "UNAVAILABLE" } }

Any inputs would be appreciated.

1
It means that Google tries to prevent "unexpected" queries from going through. You can examine the error's detail by catching it. If this error is related to search functionality, you can check this documentation to fix the issue.jess
Can you share the code you use to download the data?Jescanellas

1 Answers

1
votes

Having run into this error recently on a script on my own my research brought me to these two articles: 1. https://airbrake.io/blog/http-errors/503-service-unavailable 2. And this so answer Since you have run this code well in the past it looks to be an issue on google's side and you'll just have to run it again later.