Google Sheets v4 API:克隆时异常 503 sheet

Google Sheets v4 API: unusual 503 when cloning sheet

Am 运行 Python 2.7 脚本可以成功地将 sheet(索引:0)克隆到同一个传播sheet,但在尝试第二个时失败 sheet(索引:1)。 sheet 没有特殊的验证、格式或任何不寻常的输入 - 它是一个带有文本的网格。

脚本的输出是:

File "/usr/lib/python2.7/site-packages/googleapiclient/http.py", line 840, in execute
raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 503 when requesting https://sheets.googleapis.com/v4/spreadsheets/****/sheets/1:copyTo?alt=json returned "The service is currently unavailable.">

这也发生在 API Explorer 站点上。我已经从 sheet 中提取了元数据并且可以确认一切看起来都正常,并且索引 ID 是正确的。有人见过这样的东西吗?

已解决:

假设使用索引 ID 就足够了,但它必须是 sheetId。用户错误。 ('1694990728' 而不是 '1')