gspread:'连接已中止。',错误(10054,'现有连接被远程主机强行关闭'

时间:2017-09-25 18:07:00

标签: python oauth gspread

我正在使用gspread和python。我的代码工作正常,我没有做任何更改,我开始收到此错误:'连接已中止。',错误(10054,'现有连接被远程主机强行关闭'我的脚本开始运行的时间越来越短,直到现在它根本无法运行。以下是我尝试进行身份验证的方法。

import gspread
from oauth2client.service_account import ServiceAccountCredentials

scope = ['https://spreadsheets.google.com/feeds']
creds = ServiceAccountCredentials.from_json_keyfile_name('QSIO-
722b2a587942.json', scope)
client = gspread.authorize(creds)

sheet=client.open("1718ps_onice_nst").sheet1

在阅读了其他一些帖子后,我还尝试在client = gspread.authorize(creds)之后添加client.login()。我还尝试使用新凭据创建一个新项目,但也无法正常工作。

0 个答案:

没有答案
相关问题