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

Python gspread:';连接中止。';,错误(10054,';现有连接被远程主机强制关闭';,python,oauth,gspread,Python,Oauth,Gspread,我正在使用gspread和python。我的代码工作正常,没有做任何更改,我开始收到这个错误:“连接中止”,错误(10054,“现有连接被远程主机强制关闭”我的脚本开始运行的时间越来越短,直到现在它根本不会运行。下面是我如何尝试进行身份验证 import gspread from oauth2client.service_account import ServiceAccountCredentials scope = ['https://spreadsheets.google.com/feed

我正在使用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()。我还尝试使用新凭据创建一个新项目,但这也不起作用。

您好。我遇到了与您相同的错误。您解决了该问题吗?如果解决了,请与我分享经验。谢谢。您好。我遇到了与您相同的错误。您解决了该问题吗?如果解决了,请与我分享经验。谢谢。