我一直在使用相同的google-api-python-client
与gsheets进行交互。突然收到以下错误:
HttpError: <HttpError 504 when requesting https://sheets.googleapis.com/v4/spreadsheets/1DPGOfVqnJANZRt3lC3C6XBvgnuLO4oqfn3i5AmsdfMM/values/Data%21A10%3AAM?alt=json returned "Deadline expired before operation could complete."
在这行代码上
result = self.service.spreadsheets().values().get(spreadsheetId=key, range=ranges).execute()
其中self.service = discovery.build('sheets', 'v4', http=http, discoveryServiceUrl=discoveryUrl)
...快速启动代码取自Google的示例。工作正常,直到今天。我没有在一周内运行代码。