Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 谷歌服务帐户出现未经验证的错误_Python_Python 3.x_Google Api_Google Oauth_Service Accounts - Fatal编程技术网

Python 谷歌服务帐户出现未经验证的错误

Python 谷歌服务帐户出现未经验证的错误,python,python-3.x,google-api,google-oauth,service-accounts,Python,Python 3.x,Google Api,Google Oauth,Service Accounts,我的代码在本地服务器上平稳运行。 在GCP服务器上,python服务器作为linux systemd服务启动, 经过几个小时的重新启动,它给了我 Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. 我正在使用gspread访问谷歌电子表格 范围https://www.googlea

我的代码在本地服务器上平稳运行。 在GCP服务器上,python服务器作为linux systemd服务启动, 经过几个小时的重新启动,它给了我

Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential.
我正在使用gspread访问谷歌电子表格

范围https://www.googleapis.com/auth/spreadsheets


gspread中的问题可以使用

client.login


请提供您的相关代码。请编辑您的问题并包含您的代码。我们需要看看你在做什么来帮助你。