google-sheetsgoogle-sheets-apigoogle-drive-realtime-api

gspread: 503 the service is currently unavailable


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.


Solution

  • 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.